/* Aepto - Modern Login Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    line-height: 1.6;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

/* Visible Background Effects - Performance Optimized */
.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.4) 0%, transparent 60%);
    will-change: transform;
    animation: visibleFloat 20s ease-in-out infinite;
    z-index: 0;
}

.auth-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    will-change: transform;
    animation: visibleShimmer 12s ease-in-out infinite;
    z-index: 0;
}

@keyframes visibleFloat {
    0%, 100% { 
        transform: translate3d(0, 0, 0) scale(1); 
    }
    50% { 
        transform: translate3d(20px, -20px, 0) scale(1.05); 
    }
}

@keyframes visibleShimmer {
    0%, 100% { 
        opacity: 0.3; 
        transform: translate3d(-100%, 0, 0); 
    }
    50% { 
        opacity: 0.7; 
        transform: translate3d(100%, 0, 0); 
    }
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
}

.features-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Override brand colors specifically - FORCE WHITE colors for dark background */
.features-section .auth-brand,
.auth-brand {
    color: white !important;
    font-weight: 800 !important;
}

.features-section .auth-tagline,
.auth-tagline {
    color: white !important;
    font-weight: 500 !important;
}

/* Force override any other color rules */
.features-section h1,
.features-section .auth-brand {
    color: white !important;
}

.features-section div,
.features-section .auth-tagline {
    color: white !important;
}

/* Fix feature boxes - make them glass morphism like login page */
.feature-item {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    transition: all 0.3s ease !important;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* Fix security highlight box too */
.security-highlight {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
}

/* Visible Floating Particles - Performance Optimized */
.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 80px 60px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 140px 20px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 200px 80px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 250px 120px;
    will-change: transform;
    animation: visibleParticles 18s linear infinite;
    z-index: 1;
}

@keyframes visibleParticles {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -120px, 0); }
}

.features-content {
    text-align: left;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.features-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
}

.centralization-highlight {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    max-width: 420px;
}

.centralization-content {
    position: relative;
    z-index: 2;
}

.centralization-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    line-height: 1.2;
}

.centralization-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
    max-width: 360px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
    max-width: 100%;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease;
    cursor: pointer;
    min-height: 120px;
    justify-content: center;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
    color: white;
    display: block;
    width: 100%;
    text-align: center;
}

.feature-text {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    color: white;
    margin-bottom: 0.25rem;
    display: block;
}

.feature-desc {
    font-size: 0.75rem;
    opacity: 0.8;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    text-align: center;
}

/* Clean Form Section - Dark Background to Match Dashboard */
.form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #091124;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Fix autofill styling for dark background */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure consistent input styling for dark background */
.form-control {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.2) !important;
    color: #ffffff !important;
}

/* Input Group Styles for 2FA - Override Bootstrap */
.auth-form .input-group {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.auth-form .input-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 16px !important;
    pointer-events: none !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
}

/* Focus states for auth form */
.auth-form .input-group:focus-within .input-icon,
.auth-form .input-group:focus-within .input-icon i {
    color: #667eea !important;
}

.auth-form .input-group .form-control:focus + .input-icon,
.auth-form .input-group .form-control:focus ~ .input-icon {
    color: #667eea !important;
}

/* Ensure icon stays visible in all states */
.auth-form .input-icon i {
    color: inherit !important;
    display: inline-block !important;
}

/* Force icon color to be visible on dark background */
.auth-form .input-icon,
.auth-form .input-icon i,
.auth-form .input-group .input-icon,
.auth-form .input-group .input-icon i {
    color: rgba(255, 255, 255, 0.6) !important;
}

.auth-form .input-group:focus-within .input-icon,
.auth-form .input-group:focus-within .input-icon i,
.auth-form .input-group .form-control:focus ~ .input-icon,
.auth-form .input-group .form-control:focus ~ .input-icon i {
    color: #667eea !important;
}

.auth-form .input-group .form-control {
    padding-left: 40px !important;
    padding-right: 12px !important;
}

.auth-card {
    background: rgba(9, 17, 36, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 39, 70, 0.5);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: auto;
    margin: 0 auto 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.auth-brand {
    font-size: 2rem;
    font-weight: 800;
    color: #667eea !important;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-tagline {
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65) !important;
    margin: 0 auto 1.5rem;
    text-align: center;
    letter-spacing: 0.4px;
    line-height: 1.5;
    max-width: 300px;
    font-style: italic;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0.375rem;
    font-size: 0.85rem;
}

.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

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

.form-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    color: #ffffff;
}

/* Select dropdown options - ensure visibility */
.form-input option {
    background: #ffffff;
    color: #1a1a1a;
    padding: 0.5rem;
}

/* Select dropdown when open */
.form-input select option {
    background: #ffffff;
    color: #1a1a1a;
}

/* Ensure select element itself has proper styling */
select.form-input {
    color: #ffffff;
    cursor: pointer;
}

select.form-input option {
    background: #ffffff;
    color: #1a1a1a;
    padding: 0.5rem 0.875rem;
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7) !important;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    z-index: 10;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle i,
.password-group:focus-within .password-toggle i,
.password-group .password-toggle i,
.form-input:focus ~ .password-toggle i,
.form-input:-webkit-autofill ~ .password-toggle i,
.form-control:focus ~ .password-toggle i,
.form-control:-webkit-autofill ~ .password-toggle i,
input:-webkit-autofill ~ .password-toggle i,
input:autofill ~ .password-toggle i {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 0 2px rgba(9, 17, 36, 0.5);
}

.password-toggle:hover,
.password-toggle:hover i,
.password-group:hover .password-toggle i {
    color: #ffffff !important;
}

.security-note {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    accent-color: #667eea;
}

.checkbox-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #764ba2;
}

.submit-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #667eea;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: #5a67d8;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
}

.form-footer p {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 0.75rem;
}

.form-footer p:last-child {
    margin-bottom: 0;
}

.form-footer .link {
    color: #667eea !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-footer .link:hover {
    color: #764ba2 !important;
}

.signup-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.signup-link:hover {
    color: #764ba2;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: none;
}

.alert.error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert.success {
    background: #c6f6d5;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.alert.success::before {
    content: "✅ ";
    font-weight: bold;
}

/* Auth Message Styles - For 2FA verification and other auth messages */
.auth-message,
.form-section .auth-message,
.auth-card .auth-message {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

.auth-message .message-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-message .message-content i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.auth-message.success,
.form-section .auth-message.success,
.auth-card .auth-message.success {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.auth-message.success .message-content,
.auth-message.success .message-content span,
.auth-message.success .message-content i,
.auth-message.success .message-content *,
.form-section .auth-message.success .message-content,
.form-section .auth-message.success .message-content span,
.form-section .auth-message.success .message-content i,
.form-section .auth-message.success .message-content *,
.auth-card .auth-message.success .message-content,
.auth-card .auth-message.success .message-content span,
.auth-card .auth-message.success .message-content i,
.auth-card .auth-message.success .message-content * {
    color: #4ade80 !important;
}

.auth-message.error,
.form-section .auth-message.error,
.auth-card .auth-message.error {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

.auth-message.error .message-content,
.auth-message.error .message-content span,
.auth-message.error .message-content i,
.auth-message.error .message-content *,
.form-section .auth-message.error .message-content,
.form-section .auth-message.error .message-content span,
.form-section .auth-message.error .message-content i,
.form-section .auth-message.error .message-content *,
.auth-card .auth-message.error .message-content,
.auth-card .auth-message.error .message-content span,
.auth-card .auth-message.error .message-content i,
.auth-card .auth-message.error .message-content * {
    color: #f87171 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
}

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

/* Desktop Layout */
@media (min-width: 1024px) {
    .auth-container {
        padding: 0;
    }
    
    .auth-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: 100vh;
        width: 100%;
    }
    
    .features-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 4rem 3rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        position: relative;
        overflow: hidden;
    }
    
    .features-content {
        position: relative;
        z-index: 2;
        text-align: center;
        max-width: 500px;
    }
    
    .features-title {
        font-size: 3.2rem;
        font-weight: 800;
        margin-bottom: 1rem;
        text-shadow: 0 4px 8px rgba(0,0,0,0.2);
        line-height: 1.1;
        background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .features-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        opacity: 0.95;
        line-height: 1.5;
        font-weight: 400;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .centralization-highlight {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 16px;
        padding: 1.75rem 2rem;
        margin-bottom: 2.5rem;
        backdrop-filter: blur(15px);
        text-align: center;
        position: relative;
        overflow: hidden;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .centralization-content {
        position: relative;
        z-index: 2;
    }
    
    .centralization-title {
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        color: white;
        line-height: 1.2;
    }
    
    .centralization-desc {
        font-size: 0.95rem;
        opacity: 0.9;
        line-height: 1.5;
        margin: 0;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .features-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .feature-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.25rem;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        min-height: 120px;
        justify-content: center;
    }
    
    .feature-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .feature-item:hover {
        background: rgba(255, 255, 255, 0.12);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .feature-item:hover::before {
        opacity: 1;
    }
    
    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
        opacity: 0.9;
        color: white;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .feature-item:hover .feature-icon {
        transform: scale(1.1);
        opacity: 1;
    }
    
    .feature-text {
        font-weight: 600;
        font-size: 0.9rem;
        line-height: 1.2;
        color: white;
        margin-bottom: 0.25rem;
        display: block;
    }
    
    .feature-desc {
        font-size: 0.75rem;
        opacity: 0.8;
        line-height: 1.3;
        color: rgba(255, 255, 255, 0.85);
        display: block;
        text-align: center;
    }
    
    .form-section {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem;
        background: #f8fafc;
    }
}

/* Tablet Layout - Keep two columns */
@media (max-width: 1023px) and (min-width: 769px) {
    .auth-wrapper {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
    }
    
    .features-section {
        padding: 2rem 1rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .form-section {
        padding: 2rem 1rem;
        background: #f8fafc;
    }
    
    .auth-card {
        padding: 2rem;
    }
}

/* Mobile Layout - Stack vertically */
@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .features-section {
        order: 2;
        padding: 2rem 1rem;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .form-section {
        order: 1;
        padding: 2rem 1rem;
        background: #f8fafc;
    }
    
    .auth-container {
        padding: 0.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .features-title {
        font-size: 2rem;
    }
    
    .features-subtitle {
        font-size: 1rem;
    }
    
    .centralization-highlight {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .centralization-title {
        font-size: 1.1rem;
    }
    
    .centralization-desc {
        font-size: 0.85rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .feature-item {
        padding: 1rem;
        min-height: 80px;
    }
    
    .feature-icon {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-text {
        font-size: 0.8rem;
    }
    
    .feature-desc {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.25rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 0.75rem 0.875rem;
    }
    
    .submit-btn {
        padding: 0.75rem 1.25rem;
    }
}

/* 2FA Setup Info Box */
.setup-info {
    margin-bottom: 30px;
}

.info-box {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-icon {
    font-size: 24px;
    color: #007bff;
    margin-right: 15px;
}

.info-content h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
}

.info-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 2FA Management Page Styles */
.status-section {
    margin-bottom: 30px;
}

.status-enabled, .status-disabled {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status-enabled {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.status-disabled {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.status-icon {
    font-size: 24px;
    margin-right: 15px;
}

.status-content h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.status-content p {
    margin: 0;
    font-size: 14px;
}

.action-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.action-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.action-section p {
    margin-bottom: 20px;
    color: #666;
}

.action-section .btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-section .btn-primary {
    background: #007bff;
    color: white;
}

.action-section .btn-primary:hover {
    background: #0056b3;
}

.action-section .btn-danger {
    background: #dc3545;
    color: white;
}

.action-section .btn-danger:hover {
    background: #c82333;
}

.action-section .btn i {
    margin-right: 8px;
}

.action-section .form-group {
    margin-bottom: 20px;
}

/* 2FA Action Section - Minimal contrast fixes only */
.action-section .form-label {
    color: #212529 !important;
}

/* Ensure action-section input-icon uses same positioning as auth-form */
.auth-card .action-section .input-icon,
.form-section .action-section .input-icon {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    font-size: 16px !important;
    pointer-events: none !important;
    display: inline-block !important;
}

/* Fix text color in form-control so password is visible when typing */
.action-section .form-control {
    color: #212529 !important;
    padding-left: 40px !important;
}

.action-section .form-control:focus {
    color: #212529 !important;
    background-color: #fff !important;
    padding-left: 40px !important;
}

.action-section .form-control::placeholder {
    color: #6c757d !important;
    opacity: 1 !important;
}

.auth-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-card .auth-message {
    margin: 20px 0;
    width: 100%;
}

.auth-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.auth-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.auth-message .message-content {
    display: flex;
    align-items: center;
}

.auth-message .message-content i {
    margin-right: 8px;
}

