.login-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 16px 40px;
    background: transparent;
}

.login-container {
    background: #ffffff;
    border: 1px solid #e3e8f0;
    border-radius: 0;
    padding: 2.5rem 1.5rem;
    max-width: 720px;
    width: 100%;
    box-shadow: 0 22px 55px rgba(13, 59, 102, 0.08);
}

.login-branding {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.login-logo svg {
    width: 40px;
    height: 40px;
    color: #000000;
    stroke-width: 2;
}

.login-branding h1 {
    font-family: inherit;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    letter-spacing: 0;
    background: linear-gradient(90deg, #003a7d 0%, #2d7a3f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.login-branding p {
    color: #5b6475;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-form .form-group {
    gap: 0.5rem;
}

.login-form label {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    font-family: inherit;
}

.login-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
}

.login-form .input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    border: 1px solid #d1d5db;
    border-radius: 0 !important;
    -webkit-appearance: none;
    appearance: none;
    background: #ffffff;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form .input-wrapper input:focus {
    border-color: #0d3b66;
    box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.15);
}

.login-form .form-group:nth-of-type(2) .input-wrapper input {
    padding-right: 45px;
}

.login-form .input-wrapper input::placeholder {
    color: #8a94a6;
    font-weight: 500;
}

.login-form .input-icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    color: #0d3b66;
    top: 50%;
    transform: translateY(-50%);
    stroke-width: 2;
}

.login-form .input-highlight {
    display: none;
}

.form-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: inherit;
}

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

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid #d1d5db;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
}

.remember-me input[type="checkbox"]:checked {
    background: #15803d;
    border-color: #15803d;
}

.remember-me input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

.forgot-password {
    color: #0d3b66;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: inherit;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #115290;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    border-radius: 0;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 12px 28px rgba(13, 59, 102, 0.22);
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.login-btn .btn-text {
    flex: 1;
    text-align: center;
}

.login-btn .btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    color: #ffffff;
    flex-shrink: 0;
}

.login-btn .btn-loader {
    display: none;
}

.login-btn:hover {
    box-shadow: 0 14px 30px rgba(13, 59, 102, 0.28);
}

.login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 10px 22px rgba(13, 59, 102, 0.18);
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e3e8f0;
    text-align: center;
    color: #5b6475;
    font-weight: 600;
    line-height: 1.6;
    font-size: 0.85rem;
    font-family: inherit;
}

.login-footer p {
    margin: 0.25rem 0;
}

.login-footer p:first-child {
    color: #5b6475;
}

.login-footer a {
    color: #0d3b66;
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    color: #115290;
    text-decoration: underline;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    z-index: 2;
    color: #0d3b66;
}

.password-toggle .eye-open {
    display: none;
}

.password-toggle .eye-closed {
    display: block;
}

.password-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
    stroke-width: 2;
}

.password-toggle.active .eye-open {
    display: block;
}

.password-toggle.active .eye-closed {
    display: none;
}

.login-error {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    margin-top: 1rem;
    background: #fee2e2;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0;
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    text-align: center;
}

.login-error svg {
    display: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.forgot-password-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1200;
    padding: 16px;
}

.forgot-password-modal.show {
    display: flex;
}

.forgot-password-modal-content {
    position: relative;
    width: min(420px, 100%);
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0;
    box-shadow: 0 22px 55px rgba(13, 59, 102, 0.18);
    padding: 28px 24px;
}

.forgot-password-modal-content h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.forgot-password-modal-content p {
    margin: 0 0 10px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

.forgot-password-admin-contact {
    margin-bottom: 0;
    font-weight: 700;
    color: #0d3b66;
}

.forgot-password-admin-contact a {
    color: #0d3b66;
    text-decoration: none;
}

.forgot-password-admin-contact a:hover {
    text-decoration: underline;
}

.forgot-password-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

/* Small devices (mobile-first, matches screenshot) */
@media (max-width: 480px) {
    .login-section {
        padding: 1.5rem 1rem;
        min-height: 100vh;
    }

    .login-container {
        padding: 2rem 1.25rem;
        border-radius: 0;
    }

    .login-logo {
        width: 70px;
        height: 70px;
    }

    .login-logo svg {
        width: 36px;
        height: 36px;
    }

    .login-branding h1 {
        font-size: 1.5rem;
    }

    .login-branding p {
        font-size: 0.85rem;
    }

    .login-form .input-wrapper {
        min-height: 48px;
        border-radius: 0;
        border-width: 2px;
    }

    .login-form .input-wrapper input {
        padding: 10px 38px 10px 36px;
        font-size: 0.85rem;
    }

    .login-form .form-group:nth-of-type(2) .input-wrapper input {
        padding-right: 42px;
    }

    .login-form .input-icon {
        left: 10px;
        width: 16px;
        height: 16px;
    }

    .password-toggle {
        right: 10px;
        width: 20px;
        height: 20px;
    }

    .password-toggle svg {
        width: 16px;
        height: 16px;
    }

    .login-btn {
        height: 48px;
        font-size: 0.95rem;
        padding: 0 18px;
        border-radius: 0;
    }

    .login-btn .btn-icon {
        width: 18px;
        height: 18px;
    }

    .login-footer {
        font-size: 0.8rem;
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }
}

/* Desktop Enhancements (769px+) */
@media (min-width: 769px) {
    .login-section {
        padding: 48px 24px 60px;
    }

    .login-container {
        padding: 3rem 3rem;
        border-radius: 0;
    }

    .login-branding h1 {
        font-size: 2rem;
    }

    .login-branding p {
        font-size: 1rem;
    }

    .form-options {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .login-form .input-wrapper {
        min-height: 56px;
        border-width: 2px;
    }

    .login-form .input-wrapper input {
        padding: 14px 50px 14px 45px;
        font-size: 0.95rem;
    }

    .login-form .form-group:nth-of-type(2) .input-wrapper input {
        padding-right: 50px;
    }

    .login-btn {
        height: 56px;
        font-size: 1.05rem;
        border-radius: 0;
    }
}