/* ==========================================================================
   iMonitoring Login - Premium Split-Screen Design
   ========================================================================== */

/* CSS Custom Properties */
:root {
    --login-green-primary: #8cc63f;
    --login-green-hover: #7ab332;
    --login-green-dark: #6a9c29;
    --login-green-focus: rgba(140, 198, 63, 0.25);
    --login-white: #ffffff;
    --login-gray-50: #f9fafb;
    --login-gray-100: #f3f4f6;
    --login-gray-200: #e5e7eb;
    --login-gray-300: #d1d5db;
    --login-gray-400: #9ca3af;
    --login-gray-500: #6b7280;
    --login-gray-600: #4b5563;
    --login-gray-700: #374151;
    --login-gray-800: #1f2937;
    --login-gray-900: #111827;
    --login-text-dark: #1a1a1a;
    --login-error: #dc2626;
    --login-error-bg: #fef2f2;
    --login-error-border: #fecaca;
    --login-warning-bg: #fff5f5;
    --login-warning-border: #feb2b2;
    --login-warning-text: #c53030;
    --login-info-bg: #ebf8ff;
    --login-info-border: #90cdf4;
    --login-info-text: #2c5282;
    --login-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --login-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --login-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --login-transition: 0.2s ease;
}

/* Reset wrapper styles from master page */
.wrapper {
    padding: 0;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

body {
    margin: 0 !important;
    overflow: hidden;
}

/* ==========================================================================
   Split Container - CSS Grid Layout
   ========================================================================== */

.login-split-container {
    display: grid;
    grid-template-columns: 45% 55%;
    min-height: 100vh;
    width: 100%;
    background-image: url('/img/login-bg-waves.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   Left Column - Branding Section (Premium Wave Design)
   ========================================================================== */

.login-branding {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    padding: 2.5rem;
}

.branding-content {
    position: relative;
    z-index: 2;
    text-align: left;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Logo at TOP */
.branding-logo {
    display: flex;
    align-items: center;
}

.branding-logo img {
    max-width: 180px;
    height: auto;
    filter: brightness(1);
}

/* Welcome text at BOTTOM */
.branding-welcome {
    color: var(--login-white);
    max-width: 360px;
}

.branding-welcome h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.branding-welcome p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.65;
    margin: 0;
    opacity: 0.9;
}

/* ==========================================================================
   Right Column - Form Section (Premium Glassmorphism)
   ========================================================================== */

.login-form-section {
    /* 1. Glassmorphism Gradient: Semi-transparant links naar bijna massief wit rechts */
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.6) 0%,      /* Semi-transparant wit links */
        rgba(255, 255, 255, 0.8) 30%,     /* Geleidelijke overgang */
        rgba(255, 255, 255, 0.95) 100%    /* Bijna massief wit rechts */
    );
    
    /* 2. Blur Effect: De sleutel tot de premium matglas look */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* Safari support */
    
    /* 3. Subtiele Rand: Glasplaat effect aan de linkerkant */
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    
    /* 4. Zachte Schaduw: Laat het paneel zweven boven de achtergrond */
    box-shadow: 
        -20px 0 60px rgba(0, 0, 0, 0.08),
        -5px 0 20px rgba(0, 0, 0, 0.04);
    
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem;
    padding-top: 4rem;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

/* Form Header - Premium Typography */
.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--login-text-dark);
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.form-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    color: var(--login-gray-500);
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */

#login-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Input Group */
.input-group {
    margin-bottom: 1.25rem;
}

/* Input Label - Darker & Bolder */
.input-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--login-gray-800);
    margin-bottom: 0.5rem;
}

/* Form Input */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--login-text-dark);
    background: var(--login-white);
    border: 1px solid var(--login-gray-200);
    border-radius: 8px;
    outline: none;
    transition: border-color var(--login-transition), box-shadow var(--login-transition), background-color var(--login-transition);
    box-sizing: border-box;
}

.form-input::placeholder {
    color: var(--login-gray-400);
    font-weight: 400;
}

.form-input:hover {
    border-color: var(--login-gray-300);
}

.form-input:focus {
    border-color: var(--login-green-primary);
    box-shadow: 0 0 0 3px var(--login-green-focus);
}

/* Chrome Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--login-text-dark) !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .form-input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--login-gray-400);
    transition: color var(--login-transition);
    border-radius: 4px;
}

.password-toggle:hover {
    color: var(--login-gray-600);
}

.password-toggle:focus {
    outline: 2px solid var(--login-green-primary);
    outline-offset: 2px;
    color: var(--login-green-primary);
}

.password-toggle .material-icons {
    font-size: 1.25rem;
    line-height: 1;
}

/* Password Extras Row (Error + Forgot Link) */
.password-extras {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.forgot-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--login-gray-600);
    text-decoration: none;
    transition: color var(--login-transition), text-decoration var(--login-transition);
}

.forgot-link:hover {
    color: var(--login-green-primary);
    text-decoration: underline;
}

/* Error State */
.input-error-text {
    display: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    color: var(--login-error);
}

.input-group.has-error .form-input {
    border-color: var(--login-error);
    background-color: var(--login-error-bg);
}

.input-group.has-error .form-input:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.input-group.has-error .input-error-text {
    display: block;
}

.input-group.has-error .forgot-link {
    display: none;
}

/* ==========================================================================
   Message Styling - Notification Badge
   ========================================================================== */

.login-message-inline {
    width: 100% !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 1rem !important;
    border-radius: 4px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    display: none;
    border: none !important;
    border-left: 4px solid #4f46e5 !important;
    background-color: #eef2ff !important;
    color: #3730a3 !important;
    box-sizing: border-box !important;
    text-align: left !important;
    position: static !important;
}

.login-message-inline:not(:empty) {
    display: block !important;
}

.login-message-inline:not(:empty).message-warning {
    background-color: #fef2f2 !important;
    border-left-color: #ef4444 !important;
    color: #991b1b !important;
}

.login-message-inline:not(:empty).message-info {
    background-color: #eef2ff !important;
    border-left-color: #4f46e5 !important;
    color: #3730a3 !important;
}

.login-message-inline a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* ==========================================================================
   Submit Button - iMonitoring Green
   ========================================================================== */

.form-submit {
    margin-top: 0.75rem;
}

.btn-primary {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--login-white);
    background: var(--login-green-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color var(--login-transition), transform var(--login-transition), box-shadow var(--login-transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(140, 198, 63, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: var(--login-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(140, 198, 63, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(140, 198, 63, 0.2);
}

.btn-primary:focus {
    outline: 2px solid var(--login-green-primary);
    outline-offset: 2px;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-primary.loading {
    background: var(--login-gray-400);
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading .material-icons {
    font-size: 1.125rem;
}

/* Spinning animation for loading icon */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin 1s linear infinite;
}

/* ==========================================================================
   Back Link (Forgot Password Page)
   ========================================================================== */

.back-link-container {
    margin-top: 1.5rem;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--login-gray-600);
    text-decoration: none;
    transition: color var(--login-transition);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.back-link:hover {
    color: var(--login-green-primary);
}

.back-link .material-icons {
    font-size: 1.125rem;
    transition: transform var(--login-transition);
}

.back-link:hover .material-icons {
    transform: translateX(-3px);
}

/* ==========================================================================
   Validation & Server Error Boxes (Styled Alerts)
   ========================================================================== */

.validation-error-box,
.server-error-box {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 1rem 0 !important;
    padding: 1rem !important;
    border-radius: 4px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    border: none !important;
    border-left: 4px solid #ef4444 !important;
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    box-sizing: border-box !important;
    text-align: left !important;
    position: static !important;
}

.validation-error-box {
    display: none;
}

.validation-error-box:not(:empty) {
    display: block;
}

.server-error-box:empty {
    display: none !important;
}

.server-error-box:not(:empty) {
    display: block !important;
}

/* Override any legacy inline styles on server messages */
.server-error-box,
.server-error-box.message-warning,
#login_message,
div.ww-message,
div.ww-message.message-warning,
div.ww-message.message-info,
div.www-message,
div.www-message.message-warning,
.login-split-container .ww-message,
.login-split-container .www-message,
.login-form-section .ww-message,
.login-form-section .www-message,
.form-wrapper .ww-message,
.form-wrapper .www-message {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 1rem 0 !important;
    padding: 1rem !important;
    border-radius: 4px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    border: none !important;
    border-left: 4px solid #ef4444 !important;
    background: #fef2f2 !important;
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    box-sizing: border-box !important;
    text-align: left !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    transform: none !important;
}

/* Hidden state for server messages (triggered by JS) */
div.ww-message.is-hidden,
div.www-message.is-hidden,
#login_message.is-hidden {
    display: none !important;
}

/* Info message variant (success) */
div.ww-message.message-info,
div.www-message.message-info,
.login-split-container .ww-message.message-info,
.form-wrapper .ww-message.message-info {
    border-left-color: #4f46e5 !important;
    background: #eef2ff !important;
    background-color: #eef2ff !important;
    color: #3730a3 !important;
}

/* Hide empty messages */
div.ww-message:empty,
div.www-message:empty {
    display: none !important;
}

/* ==========================================================================
   Password Requirements Info Box
   ========================================================================== */

.password-requirements {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    color: #166534;
}

.password-requirements .material-icons {
    font-size: 1.125rem;
    color: #22c55e;
}

/* ==========================================================================
   Password Strength Meter - Premium Design (OWASP recommended - zxcvbn)
   ========================================================================== */

.password-strength-container {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(249,250,251,0.95) 100%);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.04),
        0 1px 2px rgba(0,0,0,0.02),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.password-strength-container:hover {
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.06),
        0 2px 4px rgba(0,0,0,0.03),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

/* Strength Bar Track */
.password-strength-bar {
    height: 8px;
    background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 100%);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.875rem;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Animated Strength Fill */
.password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect on the fill */
.password-strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.3) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Strength indicator segments (visual guides) */
.password-strength-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent calc(20% - 1px),
        rgba(255,255,255,0.5) calc(20% - 1px),
        rgba(255,255,255,0.5) 20%
    );
    z-index: 1;
    pointer-events: none;
}

/* Strength Text Row */
.password-strength-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.password-strength-text #strength-label {
    color: var(--login-gray-500);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.password-strength-text #strength-value {
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    background: rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

/* Strength value color states */
.password-strength-container[data-strength="0"] #strength-value {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.password-strength-container[data-strength="1"] #strength-value {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
}

.password-strength-container[data-strength="2"] #strength-value {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.password-strength-container[data-strength="3"] #strength-value {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.password-strength-container[data-strength="4"] #strength-value {
    background: rgba(22, 163, 74, 0.15);
    color: #15803d;
}

/* Feedback Text */
.password-strength-feedback {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8125rem;
    color: var(--login-gray-600);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.password-strength-feedback:empty {
    display: none;
}

.password-strength-feedback::before {
    content: '💡';
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Success state feedback */
.password-strength-container[data-strength="3"] .password-strength-feedback::before,
.password-strength-container[data-strength="4"] .password-strength-feedback::before {
    content: '✓';
    color: #16a34a;
    font-weight: 700;
}

/* Gradient fills for each strength level */
.password-strength-container[data-strength="0"] .password-strength-fill {
    background: linear-gradient(90deg, #dc2626 0%, #ef4444 100%);
}

.password-strength-container[data-strength="1"] .password-strength-fill {
    background: linear-gradient(90deg, #ea580c 0%, #f97316 100%);
}

.password-strength-container[data-strength="2"] .password-strength-fill {
    background: linear-gradient(90deg, #ca8a04 0%, #eab308 100%);
}

.password-strength-container[data-strength="3"] .password-strength-fill {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
}

.password-strength-container[data-strength="4"] .password-strength-fill {
    background: linear-gradient(90deg, #15803d 0%, #16a34a 50%, #22c55e 100%);
}

/* ==========================================================================
   Success Message Box
   ========================================================================== */

.success-message-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9375rem;
    color: #166534;
}

.success-message-box .material-icons {
    font-size: 1.5rem;
    color: #22c55e;
}

/* ==========================================================================
   Footer - Inside Right Column (Flexbox)
   ========================================================================== */

.login-footer {
    width: 100%;
    max-width: 400px;
    margin-top: auto;
    padding-top: 2rem;
    padding-bottom: 1rem;
    text-align: center;
    position: relative;
}

.footer-register {
    padding: 1.25rem 0;
    border-top: 1px solid var(--login-gray-200);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #9ca3af;
}

.footer-register span {
    margin-right: 0.375rem;
}

.register-link {
    color: var(--login-green-primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--login-transition);
}

.register-link:hover {
    color: var(--login-green-hover);
    text-decoration: underline;
}

/* Legal Footer */
.footer-legal {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    padding-top: 0.5rem;
}

.footer-legal:empty {
    display: none;
}

    .footer-legal a, .footer-legal span {
        color: #3e4249;
        text-decoration: none;
        margin: 0 0.5rem;
        transition: color var(--login-transition);
    }

.footer-legal a:hover {
    color: var(--login-green-primary);
}

/* ==========================================================================
   Responsive Design - Tablet
   ========================================================================== */

@media (max-width: 1024px) {
    .login-split-container {
        grid-template-columns: 40% 60%;
    }

    .login-branding {
        padding: 2rem;
    }

    .branding-logo img {
        max-width: 150px;
    }

    .branding-welcome h1 {
        font-size: 2rem;
    }

    .branding-welcome p {
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Responsive Design - Mobile
   ========================================================================== */

@media (max-width: 768px) {
    .wrapper {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    body {
        overflow: auto !important;
    }

    .login-split-container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    /* Hide branding column on mobile */
    .login-branding {
        display: none;
    }

    .login-form-section {
        flex: 1;
        padding: 2rem 1.5rem;
        min-height: 100vh;
        justify-content: flex-start;
        padding-top: 2.5rem;
        /* Glassmorphism op mobiel - iets minder transparant voor leesbaarheid */
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.85) 0%,
            rgba(255, 255, 255, 0.95) 100%
        );
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: none;
        box-shadow: none;
    }

    .form-wrapper {
        max-width: 100%;
        padding-top: 1rem;
    }

    /* Show a mini logo on mobile */
    .form-header::before {
        content: '';
        display: block;
        width: 160px;
        height: 50px;
        background-image: url('/img/iMonitoring_logo_zwart.svg');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: left center;
        margin: 0 0 2rem 0;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .form-header p {
        font-size: 0.9375rem;
    }

    .login-footer {
        max-width: 100%;
    }
}

/* ==========================================================================
   Extra Small Devices
   ========================================================================== */

@media (max-width: 480px) {
    .login-form-section {
        padding: 1.5rem 1rem;
        padding-top: 2rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .form-input {
        padding: 0.75rem 0.875rem;
        font-size: 1rem; /* Prevent zoom on iOS */
    }

    .btn-primary {
        padding: 0.875rem 1.25rem;
    }

    .password-extras {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .forgot-link {
        margin-left: 0;
    }

    .input-group.has-error .forgot-link {
        display: block;
        margin-top: 0.25rem;
    }
}

/* ==========================================================================
   Large Screens
   ========================================================================== */

@media (min-width: 1440px) {
    .login-branding {
        padding: 3rem;
    }

    .branding-logo img {
        max-width: 200px;
    }

    .branding-welcome {
        max-width: 420px;
    }

    .branding-welcome h1 {
        font-size: 3rem;
    }

    .branding-welcome p {
        font-size: 1rem;
    }

    .form-header h2 {
        font-size: 2.25rem;
    }

    .form-wrapper {
        max-width: 440px;
    }

    .login-footer {
        max-width: 440px;
    }
}

/* ==========================================================================
   Accessibility & Focus States
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-input {
        border-width: 2px;
    }

    .btn-primary {
        border: 2px solid transparent;
    }

    .btn-primary:focus {
        outline-width: 3px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .login-branding {
        display: none;
    }

    .login-split-container {
        display: block;
    }

    .login-form-section {
        padding: 1rem;
    }
}
