/* CyberShield Enterprise - Authentication Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0e27;
    color: #ffffff;
    overflow-x: hidden;
}

/* Particle Background */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 191, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; top: 20%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; top: 60%; animation-delay: 16s; }
.particle:nth-child(10) { left: 15%; top: 90%; animation-delay: 18s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.3; }
    50% { transform: translateY(-100px) translateX(50px); opacity: 0.5; }
    90% { opacity: 0.3; }
}

/* Auth Container */
.auth-container {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

/* Left Side - Branding */
.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(138, 43, 226, 0.1) 100%);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.branding-content {
    max-width: 500px;
}

.logo-large {
    text-align: center;
    margin-bottom: 60px;
}

.logo-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00bfff 0%, #8a2be2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 40px rgba(0, 191, 255, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-icon-large i {
    font-size: 48px;
    color: white;
    animation: logoShield 2.5s ease-in-out infinite;
}

.logo-large h1 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #00bfff 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(0, 191, 255, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 14px 50px rgba(0, 191, 255, 0.5); }
}

@keyframes logoShield {
    0%, 100% { transform: rotate(0deg); opacity: 1; }
    25% { transform: rotate(-5deg); opacity: 0.95; }
    75% { transform: rotate(5deg); opacity: 0.95; }
}

@keyframes logoGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

.tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

/* Features List */
.features-list {
    margin-bottom: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-item i {
    color: #00bfff;
    font-size: 20px;
}

/* Stats Showcase */
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #00bfff 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Right Side - Form */
.auth-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 450px;
    position: relative;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

/* Form Styles */
.auth-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.form-label i {
    color: #00bfff;
    font-size: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00bfff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #00bfff;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-link {
    font-size: 14px;
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #8a2be2;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00bfff 0%, #8a2be2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.divider span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-social {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-social i {
    font-size: 18px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.form-footer a {
    color: #00bfff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #8a2be2;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00bfff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid #00ff88;
}

.notification.error {
    border-left: 4px solid #ff4444;
}

.notification.info {
    border-left: 4px solid #00bfff;
}

.notification i {
    font-size: 20px;
}

.notification.success i { color: #00ff88; }
.notification.error i { color: #ff4444; }
.notification.info i { color: #00bfff; }

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-branding {
        display: none;
    }
    
    .auth-form-container {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .auth-form-container {
        padding: 30px 20px;
    }
    
    .auth-form {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 28px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .stats-showcase {
        grid-template-columns: 1fr;
    }
}

/* Forgot Password Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(26, 31, 58, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 68, 68, 0.1);
    border-color: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.modal-body {
    padding: 30px;
}

.modal-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Enhanced Password Strength Indicator */
.password-requirements {
    margin-top: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.password-requirements-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.requirement-item i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
}

.requirement-item.met {
    color: #00ff88;
}

.requirement-item.met i {
    color: #00ff88;
}

/* Email Validation Feedback */
.input-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.input-feedback.success {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.input-feedback.error {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.input-feedback i {
    font-size: 14px;
}

/* Loading Button State */
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
}

/* Password Strength Bar */
.password-strength-bar {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.strength-bar-fill {
    height: 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
    width: 0%;
    margin-bottom: 8px;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Session Warning Notification */
.session-warning-notification {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 31, 58, 0.98);
    border: 1px solid rgba(255, 191, 0, 0.3);
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    min-width: 400px;
    max-width: 500px;
    transition: bottom 0.4s ease;
}

.session-warning-notification.show {
    bottom: 30px;
}

.session-warning-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.session-warning-content i {
    font-size: 32px;
    color: #ffbf00;
}

.session-warning-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.session-warning-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.btn-extend-session {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ffbf00 0%, #ff8c00 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-extend-session:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 191, 0, 0.4);
}

/* User Dropdown Menu (for dashboard) */
.user-dropdown {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(26, 31, 58, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-user-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.dropdown-user-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.dropdown-menu-items {
    padding: 8px 0;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dropdown-menu-item.danger {
    color: #ff4444;
}

.dropdown-menu-item.danger:hover {
    background: rgba(255, 68, 68, 0.1);
}

/* Responsive adjustments for new features */
@media (max-width: 768px) {
    .session-warning-notification {
        min-width: auto;
        width: 90%;
        left: 5%;
        transform: none;
    }
    
    .session-warning-notification.show {
        bottom: 20px;
    }
    
    .user-dropdown-menu {
        right: -10px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .btn-primary {
    margin-top: 10px;
}

/* Enhanced Password Strength Indicator */
.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.password-requirements-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.requirement-item i {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.requirement-item.met {
    color: #00ff88;
}

.requirement-item.met i {
    color: #00ff88;
}

/* User Dropdown Menu */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-user-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.dropdown-user-email {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.dropdown-menu-items {
    padding: 8px;
}

.dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.dropdown-menu-item i {
    width: 18px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.dropdown-menu-item:hover i {
    color: #00bfff;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dropdown-menu-item.danger {
    color: #ff4444;
}

.dropdown-menu-item.danger:hover {
    background: rgba(255, 68, 68, 0.1);
}

.dropdown-menu-item.danger i {
    color: #ff4444;
}

/* Session Timeout Warning */
.session-warning {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(255, 191, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 191, 0, 0.3);
    border-left: 4px solid #ffbf00;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.session-warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.session-warning-icon {
    font-size: 20px;
    color: #ffbf00;
}

.session-warning-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.session-warning-message {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    line-height: 1.5;
}

.session-warning-actions {
    display: flex;
    gap: 10px;
}

.session-warning-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.session-warning-btn.primary {
    background: #ffbf00;
    color: #0a0e27;
}

.session-warning-btn.primary:hover {
    background: #ffd700;
    transform: translateY(-2px);
}

.session-warning-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.session-warning-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Email Validation Feedback */
.input-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.input-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.input-feedback.valid {
    color: #00ff88;
}

.input-feedback.invalid {
    color: #ff4444;
}

.input-feedback i {
    font-size: 14px;
}

/* Enhanced Form Input States */
.form-input.valid {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

.form-input.invalid {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

/* Loading Button State */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary.loading i {
    animation: spin 1s linear infinite;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .session-warning {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Enhanced Password Strength Indicator */
.password-requirements {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.password-requirements-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.requirement-item i {
    font-size: 12px;
    width: 16px;
}

.requirement-item.met {
    color: #00ff88;
}

.requirement-item.met i {
    color: #00ff88;
}

.requirement-item.unmet i {
    color: rgba(255, 255, 255, 0.2);
}

/* Email Validation Feedback */
.input-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.input-feedback.show {
    opacity: 1;
}

.input-feedback.valid {
    color: #00ff88;
}

.input-feedback.invalid {
    color: #ff4444;
}

.input-feedback i {
    font-size: 14px;
}

/* Enhanced Form Input States */
.form-input.valid {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

.form-input.invalid {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Session Timeout Warning */
.session-warning {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 191, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 191, 0, 0.3);
    border-left: 4px solid #ffbf00;
    border-radius: 12px;
    padding: 16px 20px;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1500;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.session-warning-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.session-warning-header i {
    color: #ffbf00;
    font-size: 20px;
}

.session-warning-title {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.session-warning-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 12px;
}

.session-warning-actions {
    display: flex;
    gap: 10px;
}

.session-warning-actions button {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-extend {
    background: linear-gradient(135deg, #00bfff 0%, #8a2be2 100%);
    border: none;
    color: white;
}

.btn-extend:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
}

.btn-dismiss {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
