/* Eduquest authentication experience — loaded after legacy inline styles. */
body {
    min-height: 100vh;
    padding: clamp(16px, 4vw, 48px);
    background:
        radial-gradient(circle at 12% 8%, rgba(233, 173, 38, 0.2), transparent 25rem),
        radial-gradient(circle at 94% 92%, rgba(29, 137, 132, 0.22), transparent 28rem),
        #eff5f3 !important;
    color: #17312f;
}

.login-container {
    width: min(1120px, 100%) !important;
    min-height: min(760px, calc(100vh - 64px));
    margin: auto !important;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce8e5;
    border-radius: 28px !important;
    box-shadow: 0 28px 90px rgba(7, 59, 67, 0.16) !important;
}

.brand-panel {
    position: relative;
    isolation: isolate;
    padding: clamp(32px, 5vw, 72px) !important;
    background:
        linear-gradient(145deg, rgba(7, 61, 66, 0.93), rgba(5, 81, 83, 0.88)),
        var(--primary-color) !important;
}

.brand-panel::before,
.brand-panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
}

.brand-panel::before {
    width: 320px;
    height: 320px;
    right: -150px;
    top: -120px;
    border: 60px solid rgba(233, 173, 38, 0.14);
}

.brand-panel::after {
    width: 220px;
    height: 220px;
    left: -130px;
    bottom: -100px;
    background: rgba(255, 255, 255, 0.06);
}

.brand-panel .logo-area img {
    height: 86px !important;
    max-width: 190px;
    object-fit: contain;
    border-radius: 18px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.22));
}

.brand-title {
    margin-top: 18px !important;
    font-size: clamp(2rem, 4vw, 3.3rem) !important;
    letter-spacing: -0.045em;
}

.brand-subtitle {
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 1rem !important;
}

.feature-list {
    display: grid;
    gap: 10px;
}

.feature-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    display: inline-grid !important;
    width: 30px !important;
    height: 30px !important;
    place-items: center;
    color: #17312f !important;
    background: #e9ad26 !important;
    font-size: 0.72rem !important;
    font-weight: 800;
}

.form-panel {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: clamp(32px, 5vw, 72px) !important;
    background: #ffffff;
}

.sa-badge {
    width: fit-content;
    color: #07545a !important;
    background: #fff6dc !important;
    border: 1px solid rgba(233, 173, 38, 0.38);
}

.form-header h2 {
    color: #123d42 !important;
    font-size: clamp(1.8rem, 3vw, 2.45rem) !important;
    letter-spacing: -0.035em;
}

.form-header p,
.footer-text,
.forgot-password a {
    color: #647774 !important;
}

.form-label {
    color: #294b48 !important;
}

.form-input {
    min-height: 52px;
    padding-left: 3rem !important;
    color: #17312f;
    background: #f8fbfa !important;
    border: 1px solid #c9d9d6 !important;
    border-radius: 13px !important;
}

.form-input:focus {
    border-color: #087b78 !important;
    box-shadow: 0 0 0 4px rgba(8, 123, 120, 0.12);
}

.input-icon {
    color: #087b78 !important;
}

.login-btn {
    min-height: 52px;
    margin-top: 4px;
    color: #ffffff;
    background: #087b78 !important;
    border-radius: 13px !important;
    box-shadow: 0 12px 28px rgba(8, 123, 120, 0.2);
}

.login-btn:hover {
    background: #07545a !important;
    box-shadow: 0 16px 34px rgba(8, 84, 90, 0.25);
}

.login-btn:disabled {
    cursor: wait;
    opacity: 0.72;
}

.password-toggle {
    min-height: 40px;
    padding: 0 8px;
    color: #087b78 !important;
}

.auth-trust-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 16px;
    color: #526966;
    background: #f3f8f7;
    border: 1px solid #dce8e5;
    border-radius: 13px;
    font-size: 0.82rem;
    line-height: 1.55;
}

.auth-trust-note strong {
    color: #07545a;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        background: #ffffff !important;
    }

    .login-container {
        min-height: 100vh;
        border: 0;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .brand-panel {
        min-height: 280px;
        padding: 32px 24px !important;
    }

    .feature-list,
    .brand-panel > div:last-child {
        display: none;
    }

    .form-panel {
        padding: 34px 24px 42px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

