:root {
    /* Default to Dark Mode */
    --bg-body: radial-gradient(circle at 90% 10%, rgba(171, 195, 55, 0.18) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(182, 214, 87, 0.10) 0%, transparent 40%), linear-gradient(135deg, #0f172a 0%, #23394d 100%);
    --bg-image-fallback: #1b2a38;
    --bg-card: radial-gradient(circle at 0% 0%, rgba(171, 195, 55, 0.12) 0%, transparent 35%), #1f2e40;
    --border-card: 1px solid rgba(255, 255, 255, 0.07);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    --text-primary: #eef1dd;
    --text-secondary: #c8d0b0;
    --bg-input: #203246;
    --border-input: #365b81;
    --border-input-hover: #5ea346;
    --input-text: #f7f9ed;
    --input-placeholder: #aab7c8;
    --icon-color: #a6afbf;
    --icon-focus: #abc337;
    --bg-autofill: #203246;
    --text-autofill: #ffffff;
    --bg-option: #1e3247;
    --concave-color: #1b2a38;
    --bg-form-accent: radial-gradient(circle at 0% 0%, rgba(171, 195, 55, 0.08) 0%, transparent 35%);
    --link-color: #abc337;
    --link-hover: #b6d657;
    --bg-bubble: #ffffff;
    --text-bubble: #1f2e40;
    --arrow-bubble: #ffffff;
    --bg-error: #1e3a1f;
    --border-error: #b6d657;
    --text-error: #c8f09a;
    --shadow-focus: rgba(171, 195, 55, 0.24);
    --version-bg: rgba(255, 255, 255, 0.12);
    --toggle-bg: #25384d;
    --toggle-handle: #ffffff;
}

[data-theme="light"] {
    --bg-body: linear-gradient(135deg, #ebeda4 0%, #f2f6dc 100%);
    --bg-image-fallback: #f1f5f9;
    --bg-card: radial-gradient(circle at 0% 0%, rgba(171, 195, 55, 0.10) 0%, transparent 55%), #ffffff;
    --border-card: 1px solid #dce2c1;
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    --toggle-bg: #5f6f27; /* deeper/darker yet still brand green */
    --text-primary: #24344a;
    --text-secondary: #6a7d94;
    --bg-input: #ffffff;
    --border-input: #cddab4;
    --border-input-hover: #b6d657;
    --input-text: #2a3b50;
    --input-placeholder: #8d9aac;
    --icon-color: #7d8c9d;
    --icon-focus: #abc337;
    --bg-autofill: #ebeda4;
    --text-autofill: #2a3b50;
    --bg-option: #ffffff;
    --concave-color: #ffffff;
    --bg-form-accent: radial-gradient(circle at 0% 0%, rgba(171, 195, 55, 0.12) 0%, transparent 60%), radial-gradient(circle at 10% 90%, rgba(182, 214, 87, 0.08) 0%, transparent 50%);
    --link-color: #abc337;
    --link-hover: #8dbd55;
    --bg-bubble: #24344a;
    --text-bubble: #ffffff;
    --arrow-bubble: #24344a;
    --bg-error: #f0fdf4;
    --border-error: #b6d657;
    --text-error: #3d5a1d;
    --shadow-focus: rgba(171, 195, 55, 0.20);
    --version-bg: rgba(36, 52, 74, 0.07);
    --toggle-bg: #b6d657;
    --toggle-handle: #ffffff;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.5s ease;
}

.theme-switch-wrapper {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
}
.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--toggle-bg);
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
    border: 1px solid rgba(0, 0, 0, 0.15); /* better visibility */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: var(--toggle-handle);
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
}

.fa-sun, .fa-moon { font-size: 12px; z-index: 1; }
.fa-sun { color: #edf5ee; }
.fa-moon { color: #ffffff; }

input:checked + .slider { background-color: #5d6a2a; /* mid-dark green when active */ }
input:checked + .slider:before { transform: translateX(26px); }

.login-card {
    display: flex;
    width: 1000px;
    max-width: 100%;
    min-height: 700px;
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.error-box {
    background-color: var(--bg-error);
    border: 1px solid var(--border-error);
    color: var(--text-error);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    animation: slideDown 0.3s ease-out;
}

.error-content { display: flex; align-items: center; gap: 10px; }

.close-error { background: none; border: none; color: var(--text-error); font-size: 20px; cursor: pointer; line-height: 1; opacity: 0.75; transition: opacity 0.2s; }
.close-error:hover { opacity: 1; }

/* Success Box */
.success-box {
    background-color: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    animation: slideDown 0.3s ease-out;
}

[data-theme="dark"] .success-box {
    background-color: #064e3b;
    border: 1px solid #10b981;
    color: #d1fae5;
}

.success-content { display: flex; align-items: center; gap: 10px; }

.success-message { font-size: 14px; font-weight: 500; }

@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.form-section {
    width: 50%;
    min-width: 380px;
    padding: 52px 64px 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-section::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 93%;
    transform: translateY(-50%);
    width: 1500px;
    height: 1500px;
    border-radius: 50%;
    background: transparent;
    box-shadow: inset 20px 0 80px 10px var(--concave-color), 0 0 0 5000px var(--concave-color);
    z-index: -2;
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 113%;
    height: 100%;
    background: var(--bg-form-accent);
    z-index: -1;
    pointer-events: none;
    transition: background 0.3s ease;
}

.logo { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 22px; position: relative; z-index: 3; animation: fadeIn 0.5s ease forwards 0.1s; opacity: 0; }
.client-logo { height: 70px; max-width: 240px; object-fit: contain; }

.title { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); letter-spacing: -0.5px; position: relative; z-index: 3; animation: fadeIn 0.5s ease forwards 0.15s; opacity: 0; }
.subtitle { color: var(--text-secondary); font-size: 1rem; margin-bottom: 34px; font-weight: 400; position: relative; z-index: 3; animation: fadeIn 0.5s ease forwards 0.2s; opacity: 0; }

/* Email Display (read-only account label, reset-password page) */
.email-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 18px;
    padding: 0 2px;
    text-align: center;
    animation: fadeIn 0.5s ease forwards 0.25s;
    opacity: 0;
}

.email-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--input-text);
    line-height: 1.4;
}

.email-divider {
    border: 0;
    border-top: 1px solid var(--border-input);
    margin: 0 0 18px;
    padding: 0;
    opacity: 1;
}

.login-form { position: relative; z-index: 10; }
.input-group { margin-bottom: 18px; animation: fadeIn 0.5s ease forwards; opacity: 0; }
.input-group:nth-child(1) { animation-delay: 0.25s; }
.input-group:nth-child(2) { animation-delay: 0.30s; }
.input-group:nth-child(3) { animation-delay: 0.35s; }

.input-wrapper { background-color: var(--bg-input); border: 1px solid var(--border-input); border-radius: 10px; display: flex; align-items: center; padding: 0 18px; height: 50px; transition: all 0.25s ease; position: relative; }
.input-wrapper:hover { border-color: var(--border-input-hover); }
.input-wrapper:focus-within { border-color: var(--icon-focus); box-shadow: 0 0 0 3px var(--shadow-focus); }
[data-theme="light"] .input-wrapper:focus-within { background-color: #fff; }

.input-wrapper input, .input-wrapper select { background: transparent; border: none; color: var(--input-text); width: 100%; height: 100%; font-size: 1rem; font-family: inherit; outline: none; }

.input-wrapper input::placeholder { color: var(--input-placeholder); font-weight: 400; }

.input-wrapper input:-webkit-autofill, .input-wrapper input:-webkit-autofill:hover, .input-wrapper input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--bg-autofill) inset; -webkit-text-fill-color: var(--text-autofill); caret-color: var(--text-autofill); transition: background-color 5000s ease-in-out 0s; }

.input-icon {
    color: var(--icon-color);
    font-size: 1.1rem;
    margin-left: 12px;
    transition: color 0.25s ease;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    vertical-align: middle;
}
.input-wrapper:focus-within .input-icon { color: var(--icon-focus); }

.password-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin-right: -8px;
}
.password-toggle .input-icon {
    margin-left: 0;
    height: 50px;
    line-height: 0;
}
.password-toggle:hover .input-icon { color: var(--icon-focus); }

.company-wrapper { flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px 18px; min-height: 60px; cursor: pointer; position: relative; }
.company-content { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.company-label { font-size: 0.72rem; color: var(--icon-color); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.company-select { background: transparent; border: none; color: var(--input-text); font-size: 0.95rem; font-family: inherit; font-weight: 500; outline: none; cursor: pointer; appearance: none; width: 100%; padding-right: 28px; }

.dropdown-icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--icon-color); font-size: 0.9rem; pointer-events: none; transition: transform 0.25s ease, color 0.25s ease; }

.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; margin-top: -5px; animation: fadeIn 0.5s ease forwards 0.4s; opacity: 0; }

.remember-me { display: flex; align-items: center; cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); user-select: none; position: relative; padding-left: 28px; }
.remember-me input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }

.checkmark { position: absolute; top: -1px; left: 0; height: 20px; width: 20px; background-color: var(--bg-input); border: 1px solid var(--border-input); border-radius: 6px; transition: all 0.2s ease; }
.remember-me:hover input ~ .checkmark { border-color: var(--border-input-hover); }
.remember-me input:checked ~ .checkmark { background-color: #abc337; border-color: #abc337; }
.checkmark:after { content: ""; position: absolute; display: none; }
.remember-me input:checked ~ .checkmark:after { display: block; }
.remember-me .checkmark:after { left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.forgot-password-link { font-size: 0.9rem; color: var(--link-color); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.forgot-password-link:hover { color: var(--link-hover); text-decoration: underline; }

.login-btn {
    width: 100%;
    padding: 16px 24px;
    margin-top: 12px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #abc337 0%, #b6d657 100%);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(171, 195, 55, 0.35), 0 2px 4px rgba(171, 195, 55, 0.18);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease forwards 0.4s;
    opacity: 0;
    z-index: 3;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(171, 195, 55, 0.45), 0 4px 8px rgba(171, 195, 55, 0.25); }
.login-btn:hover::before { left: 100%; }
.login-btn:active { transform: translateY(0) scale(0.98); }

.btn-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.55); border-top-color: #ffffff; border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 8px; vertical-align: middle; }
.btn-text { vertical-align: middle; font-weight: 700; }

@keyframes spin { to { transform: rotate(360deg); } }

.footer { margin-top: auto; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; animation: fadeIn 0.5s ease forwards 0.45s; opacity: 0; }
.footer p { font-size: 0.8rem; color: var(--text-secondary); }
.footer a { color: var(--link-color); text-decoration: none; font-weight: 600; transition: color 0.25s ease; }
.footer a:hover { color: var(--link-hover); text-decoration: underline; }
.version { font-size: 0.75rem; color: var(--text-secondary); padding: 4px 10px; background: var(--version-bg); border-radius: 12px; }

.image-section { width: 60%; margin-left: -10%; position: relative; z-index: 1; overflow: hidden; background: var(--bg-image-fallback, #f1f5f9); }
.illustration-img {
    width: 110%; /* bigger to avoid blank whitespace when shifted */
    height: 110%; /* same for vertical coverage */
    object-fit: cover;
    object-position: 50% 35%; /* center/horizontally-leftish */
    transform: translateX(-8%) translateY(-3%); /* move left and avoid top/bottom gap */
    transition: transform 0.35s ease, object-position 0.35s ease;
    display: block;
}
[data-theme="light"] .illustration-img-dark { display: none; }
[data-theme="dark"] .illustration-img-light { display: none; }
.image-section::before { content: ''; position: absolute; top: 0; left: 0; width: 120px; height: 100%; background: linear-gradient(90deg, var(--concave-color) 0%, transparent 100%); z-index: 2; pointer-events: none; transition: background 0.3s ease; }

/* ============================================ */
/* RESPONSIVE BREAKPOINTS - Mobile First       */
/* ============================================ */

/* Tablet & Below (max-width: 1024px) */
@media (max-width: 1024px) {
    .login-card {
        flex-direction: column;
        height: auto;
        width: 100%;
        min-height: auto;
    }

    .form-section {
        width: 100%;
        min-width: unset;
        padding: 40px 30px;
        order: 2;
    }

    .image-section {
        width: 100%;
        min-height: 250px;
        height: auto;
        margin-left: 0;
        order: 1;
        overflow: hidden;
        background: var(--bg-image-fallback, #f1f5f9);
        display: block;
        position: relative;
    }

    .illustration-img {
        width: 100%;
        height: 250px;
        transform: none;
        object-position: center center;
        display: block;
        object-fit: cover;
        visibility: visible;
        opacity: 1;
    }

    .image-section::before {
        display: none;
    }

    .form-section::after,
    .form-section::before {
        display: none;
    }
}

/* Small Tablet/Large Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .login-card {
        border-radius: 16px;
    }

    .form-section {
        padding: 32px 24px;
    }

    .image-section {
        height: 240px;
    }

    .logo {
        margin-bottom: 18px;
    }

    .client-logo {
        height: 55px;
        max-width: 180px;
    }

    .title {
        font-size: 1.7rem;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    .input-wrapper {
        height: 48px;
        padding: 0 14px;
        border-radius: 8px;
    }

    .input-wrapper input,
    .input-wrapper select {
        font-size: 0.95rem;
    }

    .input-icon {
        font-size: 1rem;
        height: 48px;
        margin-left: 10px;
    }

    .password-toggle {
        height: 48px;
    }

    .password-toggle .input-icon {
        height: 48px;
    }

    .input-group {
        margin-bottom: 14px;
    }

    .form-options {
        margin-bottom: 16px;
        margin-top: -3px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .remember-me {
        font-size: 0.85rem;
        padding-left: 26px;
    }

    .checkmark {
        height: 18px;
        width: 18px;
    }

    .remember-me .checkmark:after {
        left: 5px;
        top: 1px;
        width: 4px;
        height: 8px;
    }

    .forgot-password-link {
        font-size: 0.85rem;
    }

    .login-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        margin-top: 8px;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 24px;
        padding-top: 20px;
    }

    .footer p {
        font-size: 0.75rem;
    }

    .version {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .theme-switch-wrapper {
        top: 12px;
        right: 12px;
    }

    .switch {
        width: 48px;
        height: 26px;
    }

    .slider {
        padding: 0 5px;
    }

    .slider:before {
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .slider:before {
        transform: translateX(22px);
    }

    .slider i { font-size: 11px; }

    .login-card {
        border-radius: 14px;
        min-height: auto;
    }

    .form-section {
        padding: 28px 18px;
        order: 2;
        justify-content: flex-start;
        padding-top: 24px;
    }

    .form-section::after {
        display: none;
    }

    .form-section::before {
        display: none;
    }

    .image-section {
        height: 180px;
        order: 1;
    }

    .illustration-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .logo {
        margin-bottom: 16px;
    }

    .client-logo {
        height: 50px;
        max-width: 160px;
    }

    .title {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 24px;
        line-height: 1.4;
    }

    .input-wrapper {
        height: 48px;
        padding: 0 12px;
        border-radius: 8px;
    }

    .input-wrapper input,
    .input-wrapper select {
        font-size: 0.9rem;
    }

    .input-wrapper input::placeholder {
        font-size: 0.9rem;
    }

    .input-icon {
        font-size: 0.95rem;
        height: 48px;
        margin-left: 8px;
    }

    .password-toggle {
        height: 48px;
        padding: 0 6px;
    }

    .password-toggle .input-icon {
        height: 48px;
        margin-left: 0;
    }

    .input-group {
        margin-bottom: 12px;
    }

    .input-group:nth-child(1) { animation-delay: 0.15s; }
    .input-group:nth-child(2) { animation-delay: 0.18s; }
    .input-group:nth-child(3) { animation-delay: 0.21s; }

    .form-options {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 14px;
        margin-top: -2px;
        animation-delay: 0.24s;
    }

    .remember-me {
        font-size: 0.8rem;
        padding-left: 24px;
    }

    .checkmark {
        height: 18px;
        width: 18px;
        top: 0;
    }

    .remember-me .checkmark:after {
        left: 5px;
        top: 1px;
        width: 4px;
        height: 8px;
    }

    .forgot-password-link {
        font-size: 0.8rem;
        width: 100%;
        text-align: right;
    }

    .login-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
        margin-top: 6px;
        border-radius: 40px;
        animation-delay: 0.27s;
    }

    .login-btn:hover {
        box-shadow: 0 10px 24px rgba(171, 195, 55, 0.35), 0 2px 4px rgba(171, 195, 55, 0.15);
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        animation-delay: 0.30s;
    }

    .footer p {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .footer a {
        font-size: 0.7rem;
    }

    .version {
        font-size: 0.65rem;
        padding: 3px 7px;
    }

    .error-box {
        padding: 10px 12px;
        margin-bottom: 16px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .error-content {
        gap: 8px;
    }

    .error-content i {
        font-size: 0.9rem;
    }

    .close-error {
        font-size: 18px;
    }

    .success-box {
        padding: 10px 12px;
        margin-bottom: 16px;
        font-size: 0.8rem;
    }

    .success-content {
        gap: 8px;
    }

    .success-message {
        font-size: 0.8rem;
    }
}

/* Ultra-Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    body {
        padding: 8px;
    }

    .theme-switch-wrapper {
        top: 8px;
        right: 8px;
    }

    .login-card {
        border-radius: 12px;
    }

    .form-section {
        padding: 24px 14px;
        padding-top: 20px;
    }

    .image-section {
        height: 140px;
    }

    .logo {
        margin-bottom: 14px;
    }

    .client-logo {
        height: 45px;
        max-width: 140px;
    }

    .title {
        font-size: 1.35rem;
        margin-bottom: 4px;
        letter-spacing: -0.3px;
    }

    .subtitle {
        font-size: 0.75rem;
        margin-bottom: 20px;
    }

    .input-wrapper {
        height: 48px;
        padding: 0 10px;
        border-radius: 6px;
    }

    .input-wrapper input::placeholder {
        font-size: 0.85rem;
    }

    .input-icon {
        font-size: 0.9rem;
        margin-left: 6px;
    }

    .input-group {
        margin-bottom: 10px;
    }

    .form-options {
        gap: 8px;
        margin-bottom: 12px;
    }

    .remember-me {
        font-size: 0.75rem;
        padding-left: 22px;
    }

    .checkmark {
        height: 16px;
        width: 16px;
    }

    .forgot-password-link {
        font-size: 0.75rem;
    }

    .login-btn {
        padding: 12px 14px;
        font-size: 0.85rem;
        margin-top: 4px;
    }

    .footer {
        margin-top: 16px;
        padding-top: 12px;
        gap: 8px;
    }

    .footer p {
        font-size: 0.65rem;
    }

    .version {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/* Landscape Orientation - Mobile & Tablet */
@media (max-height: 600px) and (max-width: 1024px) {
    .login-card {
        min-height: auto;
        max-height: 100vh;
        overflow-y: auto;
    }

    .image-section {
        height: 120px;
    }

    .form-section {
        padding: 24px 20px;
    }

    .title {
        font-size: 1.3rem;
        margin-bottom: 4px;
    }

    .subtitle {
        font-size: 0.75rem;
        margin-bottom: 16px;
    }

    .input-group {
        margin-bottom: 10px;
    }

    .footer {
        margin-top: 16px;
        padding-top: 12px;
    }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============================================ */
/* Accessibility Enhancements                    */
/* - No change to default visuals                */
/* ============================================ */

/* Keyboard focus visibility (no-op by default; respects existing focus rings) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.checkmark:focus-within {
    outline: none;
}
.theme-switch-wrapper input:focus-visible + .slider,
.password-toggle:focus-visible,
.close-error:focus-visible,
.forgot-password-link:focus-visible {
    outline: 2px solid var(--icon-focus);
    outline-offset: 2px;
}

/* Reduced motion: disable animations/transitions for users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .login-btn::before {
        display: none;
    }
}
