/* Enhanced login styles with Remember Me functionality */

body {
    font-family: Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 1.25rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
@import url(https://fonts.bunny.net/css?family=roboto:400,400i,500,500i,700,700i);
@font-face {
  font-family: "N27 Bold";
  src: url("../webfonts/N27-Bold.woff");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "N27 Light italic";
  src: url("../webfonts/N27-LightItalic.woff");
  font-weight: normal;
  font-style: italic;
}

.login-container, .reset-container {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 26.25rem;
    position: relative;
}

.login-header, .reset-header {
    text-align: left;
    margin-bottom: 1.875rem;
}
.header-logo-container{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    grid-template-columns: 1fr 2fr;
    margin-bottom: 0.5rem;
}

.login-header h1, .reset-header h1 {
    color: #333;
    margin: 0 0 0 0;
    font-family: "N27 Bold", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.75rem;
}

.login-header p, .reset-header p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

.login-header i {
    color: #667eea;
    margin-right: 0.625rem;
}
.logo {
    width: 3rem;
    height: 3rem;
    fill: #24cb61;
    
}
.brand-text-italic {
    font-family: "N27 Light italic";
    font-weight: 300;
    font-style: italic;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 0.125rem solid #e1e5e9;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="checkbox"]{
    width: auto;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.1875rem rgba(102, 126, 234, 0.1);
    transform: translateY(-0.0625rem);
}

/* Simple Remember Me CSS - Replace the remember me styles with this */

.remember-me-group {
    margin-bottom: 1.5625rem;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.remember-me-checkbox {
    display: none;
}

.remember-me-checkmark, input#remember-me {
    width: 1.125rem;
    height: 1.125rem;
    border: 0.125rem solid #e1e5e9;
    border-radius: 0.1875rem;
    margin-right: 0.625rem;
    display: inline-block;
    position: relative;
    background: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remember-me-text {
    display: inline-block;
    line-height: 1.2;
}

.remember-me-checkbox:checked + .remember-me-checkmark {
    background: #667eea;
    border-color: #667eea;
}

.remember-me-checkbox:checked + .remember-me-checkmark::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.remember-me-label:hover .remember-me-checkmark {
    border-color: #667eea;
}

.remember-me-info {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
    opacity: 0.7;
    margin-left: 1.75rem; /* Align with text */
}

.remember-me-info i {
    color: #667eea;
    margin-right: 0.375rem;
    font-size: 0.6875rem;
}

.btn-primary {
    width: 100%;
    /*background: linear-gradient(135deg, #246FF1 0%, #246FF1 100%);*/
    background-color: #246FF1;
    color: white;
    border: 0.1rem solid #ffffff;
    border-radius: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover, .btn-secondary:hover, .btn-warning:hover, .btn-danger:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.5625rem rgba(102, 126, 234, 0.3);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.toLogin{
    display: inline-block; 
    text-decoration: none; 
    margin-top: 10px;
    width: auto;
    min-width: 150px;
}

.forgot-password-link {
    text-align: left;
    margin-bottom: 1.25rem;
}

.forgot-password-link a, .back-link a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password-link a:hover, .back-link a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.back-link {
    text-align: left;
    margin-top: 1.25rem;
}

.back-link i {
    margin-right: 0.5rem;
}

/* Message Styling */
.error-message, .success-message {
    display: none;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 0.0625rem solid #fecaca;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 0.0625rem solid #a7f3d0;
    text-align: center;
}

/* Info Box Styling */
.info-box {
    background: #f0f9ff;
    border: 0.0625rem solid #bae6fd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: #0369a1;
}

.info-box.invalid-token {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.info-box i {
    margin-right: 0.5rem;
    color: #0ea5e9;
}

.info-box.invalid-token i {
    color: #ef4444;
}

/* Password Requirements */
.password-requirements {
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-top: 0.375rem;
    line-height: 1.4;
    padding: 0.5rem; /* ADD */
    background-color: #f9fafb; /* ADD */
    border-radius: 0.375rem; /* ADD */
    border: 1px solid #e5e7eb; /* ADD */
}

/* error indication styling */
.required-indicator {
    color: #dc2626;
    font-weight: bold;
    margin-left: 0.25rem;
}

.field-error {
    display: none;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.375rem;
    line-height: 1.4;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    position: relative;
}

.field-error::before {
    content: '\26A0'; /* Warning triangle */
    margin-right: 0.5rem;
    color: #dc2626;
    font-weight: bold;
}

#live-region {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group input.success,
.form-group select.success {
    border-color: #059669;
    background-color: #f0fdf4;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #059669;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23059669' d='m6.564.75-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.checkbox-option input[type="checkbox"].error {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

.form-group.has-error label {
    color: #dc2626;
    font-weight: 500;
}

button[role="switch"].error {
    border-color: #dc2626;
    box-shadow: 0 0 0 0.125rem rgba(220, 38, 38, 0.2);
}

.loading {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
}

.field-error br {
    margin-bottom: 0.25rem;
}

.field-error ul {
    margin: 0;
    padding-left: 1rem;
    list-style-type: disc;
}

.field-error li {
    margin-bottom: 0.25rem;
}

/* Form Tabs (for future use) */
.form-tabs {
    display: flex;
    margin-bottom: 1.875rem;
    border-bottom: 0.0625rem solid #e5e7eb;
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    border-bottom: 0.1875rem solid transparent;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-button:hover {
    color: #667eea;
    background-color: #f9fafb;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Forgot Password Specific Styles */
.forgot-password-form {
    margin-top: 1.25rem;
}

.forgot-password-info {
    background: #f0f9ff;
    border: 0.0625rem solid #bae6fd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5625rem;
    font-size: 0.875rem;
    color: #0369a1;
    display: flex;
    align-items: flex-start;
}

.forgot-password-info i {
    margin-right: 0.625rem;
    margin-top: 0.125rem;
    color: #0ea5e9;
}

/* MFA Form Container */
#mfa-form-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

/* MFA Header */
.mfa-header {
    text-align: left;
    margin-bottom: 2rem;
}

.mfa-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mfa-header h2 i {
    color: #059669;
}

.mfa-header p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* MFA Code Input */
.mfa-code-input {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    text-align: center;
    letter-spacing: 0.25rem;
    padding: 1rem;
    width: 100%;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

.mfa-code-input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mfa-code-input::placeholder {
    color: #9ca3af;
    letter-spacing: 0.5rem;
}

/* Form Help Text */
.form-help {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    text-align: left;
}

/* MFA Actions */
.mfa-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: center;
}

/* Link Buttons */
.btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    color: #1e40af;
    background-color: #f3f4f6;
    text-decoration: none;
}

.btn-link:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    background-color: transparent;
}

.btn-link:disabled:hover {
    color: #9ca3af;
    background-color: transparent;
}
.btn-link.invoice{
    border: 0.1rem solid #6b7280;
}
.btn-link.invoice:hover{
    background-color: #4b5563;
    color: #ffffff;
}
.billing-item{
    margin-bottom: 1rem;
}
.billing-item > div{
    padding: 0.2rem 0;
}
.billing-item .billing-status{
    padding: 0.2rem 0 0.4rem 0;
}

/* Verify Button */
#mfa-verify-btn {
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
}

/* Focus Indicators for Keyboard Navigation */
.btn-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading State for MFA Form */
.mfa-form-loading {
    opacity: 0.6;
    pointer-events: none;
}

.mfa-form-loading .mfa-code-input {
    background-color: #f3f4f6;
}

/* Success/Error States for MFA Code Input */
.mfa-code-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.mfa-code-input.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Animation for form transitions */
#mfa-form-container {
    animation: mfaSlideIn 0.3s ease-out;
}

/* Plan Selection Styles */
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    color: #374151;
}

.plan-description {
    margin-top: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
}

.feature-item i {
    color: #059669;
    font-size: 0.75rem;
}


/* Fieldset and legend styling */
.billing-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.billing-legend {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.75rem;
    padding: 0;
}

fieldset.form-fieldset {
    border: 0.0625rem solid #d1d5db;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Toggle container */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Toggle labels */
.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s ease;
    cursor: pointer;
}

.toggle-label.active {
    color: #3b82f6;
    font-weight: 500;
}

/* Toggle button (switch) */
button[role="switch"] {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    background: #cbd5e1;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    padding: 0;
}

/* Focus styles for accessibility */
button[role="switch"]:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

button[role="switch"]:focus-visible {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

/* Switch active state */
button[role="switch"][aria-checked="true"] {
    /* background: #3b82f6; */
    border-color: #3b82f6;
}

/* Toggle slider (the moving part) */
.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* Slider position when switch is on */
button[role="switch"][aria-checked="true"] .toggle-slider {
    transform: translateX(30px);
}

/* Hover effects */
button[role="switch"]:hover {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

button[role="switch"]:hover .toggle-slider {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Disabled state */
button[role="switch"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button[role="switch"]:disabled:hover {
    box-shadow: none;
}

/* Discount badge styling */
.discount-badge {
    background: #059669;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-weight: 500;
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* Checkbox Styles */
.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.checkbox-option input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #3b82f6;
    background: #3b82f6;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-option a {
    color: #3b82f6;
    text-decoration: underline;
}

.checkbox-option a:hover {
    text-decoration: underline;
}

/* Form validation states */
.form-group input.error,
.form-group select.error {
    border-color: #dc2626 !important; /* was #e74c3c */
    background-color: #fef2f2;
    box-shadow: 0 0 0 0.125rem rgba(220, 38, 38, 0.1);
}

.form-group input.error:focus,
.form-group select.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 0.1875rem rgba(220, 38, 38, 0.2);
}

.error-message::before {
    content: '\2716'; /* X mark */
    margin-right: 0.5rem;
    font-weight: bold;
}

.success-message::before {
    content: '\2713'; /* Check mark */
    margin-right: 0.5rem;
    font-weight: bold;
}

.form-group input.success,
.form-group select.success {
    border-color: #059669;
    background-color: #f0fdf4;
}

/* Team size input */
.form-group input[type="number"] {
    max-width: 120px;
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    border-color: #475569;
    line-height: 1.4;
    display: flex;
}

.form-fieldset .form-help{
    margin-bottom: 1rem;
}
#username-help.form-help, 
#contact-person-help.form-help, 
#tax-number-help.form-help, 
fieldset .form-help, 
#team-size-help.form-help{
    font-size: 0.75rem;
    color: #cbd5e1;
    margin-top: 0.375rem;
    line-height: 1.4;
    padding: 0.5rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

/* Button states for different plan types */
.btn-primary.free-plan {
    background: #059669;
    border-color: #059669;
}

.btn-primary.free-plan:hover {
    background: #047857;
    border-color: #047857;
}

.btn-primary.trial-plan {
    background: #3b82f6;
    border-color: #3b82f6;
}

.btn-primary.trial-plan:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Pricing container styling specific to registration */
.login-container .pricing-container {
    margin-top: 0.75rem;
}

.login-container .pricing-breakdown {
    font-size: 0.875rem;
}

.login-container .final-price {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* Mobile responsiveness for registration form */
@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .plan-features {
        gap: 0.75rem;
    }
    
    .checkbox-option {
        align-items: flex-start;
    }
    
    .discount-badge {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
        width: fit-content;
    }
    .billing-toggle {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .toggle-switch {
        order: 2;
    }
    
    .discount-badge {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
    .billing-toggle {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    button[role="switch"] {
        order: 2;
    }
    
    .discount-badge {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
    button[role="switch"] {
        width: 70px;
        height: 36px;
    }
    
    .toggle-slider {
        width: 26px;
        height: 26px;
    }
    
    button[role="switch"][aria-checked="true"] .toggle-slider {
        transform: translateX(34px);
    }
}

/* Loading states */
.loading {
    display: none;
    text-align: center;
    padding: 1.25rem;
    color: #667eea;
    font-weight: 500;
}

.loading i {
    margin-right: 0.5rem;
}

/* Animation for smooth transitions */
.billing-toggle .toggle-label {
    transition: all 0.2s ease;
}

.toggle-switch input:not(:checked) ~ .toggle-label:first-of-type,
.toggle-switch input:checked ~ .toggle-label:last-of-type {
    color: #3b82f6;
    font-weight: 500;
}

/* Enhanced error/success messages for registration */
.error-message, .success-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.success-message {
    background: #f0fdf4;
    color: #059669;
    border: 1px solid #bbf7d0;
}

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

/* Code input formatting for better UX */
.mfa-code-input {
    /* Prevent auto-zoom on iOS */
    font-size: max(16px, 1.5rem);
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0.625rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container, .reset-container {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 0.625rem;
    }
    
    .login-container, .reset-container {
        padding: 1.875rem 1.25rem;
        margin: 0.625rem 0;
    }
    
    .login-header h1, .reset-header h1 {
        font-size: 1.5rem;
    }
    
    .form-group input {
        font-size: 1rem; /* Prevent zoom on iOS */
    }

    .mfa-actions {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .mfa-code-input {
        max-width: 200px;
        margin: 0 auto;
    }
}

/* Ensure proper spacing in mobile */
@media (max-width: 479px) {
    .mfa-header h2 {
        font-size: 1.25rem;
    }
    
    .mfa-code-input {
        font-size: max(16px, 1.25rem);
        letter-spacing: 0.125rem;
        padding: 0.875rem;
    }
    
    .mfa-actions {
        gap: 1rem;
    }
    
    .btn-link {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .checkmark {
        border-width: 0.1875rem;
    }
    
    .btn-primary {
        border: 0.125rem solid #333;
    }
    
    .form-group input:focus {
        border-width: 0.1875rem;
    }

    .mfa-code-input {
        border-width: 3px;
    }
    
    .mfa-code-input:focus {
        border-color: #000000;
        box-shadow: 0 0 0 3px #000000;
    }
    
    .field-error {
        border-width: 2px;
        background-color: #ffffff;
    }
    
    .form-group input.error,
    .form-group select.error {
        border-width: 2px;
        background-color: #ffffff;
    }
    
    .required-indicator {
        background-color: #dc2626;
        color: #ffffff;
        padding: 0.125rem 0.25rem;
        border-radius: 0.25rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    .mfa-code-input,
    .btn-link {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .login-container, .reset-container {
        background: #334155;
        color: #e2e8f0;
    }
    
    .login-header h1, .reset-header h1 {
        color: #e2e8f0;
    }
    
    .login-header p, .reset-header p {
        color: #cbd5e0;
    }
    
    .form-group label {
        color: #e2e8f0;
    }
    
    .form-group input {
        background-color: #4a5568;
        border-color: #91A0B3;
        color: #e2e8f0;
    }
    
    .form-group input:focus {
        border-color: #667eea;
        background: #2d3748;
    }

    .form-group input::placeholder{
        color: #e2e8f0;
    }
    
    .checkmark {
        border-color: #718096;
        background: #4a5568;
    }
    
    .remember-label {
        color: #e2e8f0;
    }
    
    .remember-me-info {
        color: #cbd5e0;
    }

    .forgot-password-link a, .btn-link{
        color: #ffffff;
    }

    .forgot-password-link a:hover{
        color: #ffffff;
        text-decoration: underline;
    }
    
    .mfa-header h2{
        color: #e2e8f0;
    }

    .mfa-header p, small.form-help{
        color: #cbd5e0;
    }

    field-error {
        background-color: #450a0a;
        color: #fca5a5;
        border-color: #991b1b;
    }
    
    .form-group input.error,
    .form-group select.error {
        background-color: #450a0a;
        border-color: #dc2626;
        color: #fca5a5;
    }
    
    .password-requirements {
        background-color: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .error-message {
        background-color: #450a0a;
        color: #fca5a5;
        border-color: #991b1b;
    }
    
    .success-message {
        background-color: #064e3b;
        color: #a7f3d0;
        border-color: #047857;
    }
    
    .loading {
        background-color: #1e3a8a;
        border-color: #3b82f6;
        color: #93c5fd;
    }
}