/* EduQuest sign-in screen — split panel redesign */

:root {
    --eqlg-navy-1: #0a0f1e;
    --eqlg-navy-2: #10192f;
    --eqlg-navy-3: #16213f;
    --eqlg-teal: #14b8a6;
    --eqlg-emerald: #10b981;
    --eqlg-amber: #f59e0b;
    --eqlg-ink: #eaf1ff;
    --eqlg-ink-muted: rgba(234, 241, 255, 0.68);

    --eqlg-bg: #f3f5f9;
    --eqlg-surface: #ffffff;
    --eqlg-border: #e3e8f0;
    --eqlg-text: #0f172a;
    --eqlg-text-muted: #667085;
    --eqlg-input-bg: #f8fafc;
    --eqlg-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

html[data-theme='dark'] {
    --eqlg-bg: #0b1120;
    --eqlg-surface: #111827;
    --eqlg-border: rgba(148, 163, 184, 0.16);
    --eqlg-text: #eaf1ff;
    --eqlg-text-muted: rgba(203, 213, 225, 0.72);
    --eqlg-input-bg: #0d1526;
    --eqlg-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
}

.eqlg-body,
.eqlg-page {
    background: var(--eqlg-bg);
    min-height: 100vh;
}

.eqlg-page {
    display: flex;
    align-items: stretch;
}

.eqlg-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
}

/* ---------------- Brand pane (left) ---------------- */

.eqlg-brand-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.25rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(20, 184, 166, 0.16), transparent 45%),
        linear-gradient(160deg, var(--eqlg-navy-1), var(--eqlg-navy-2) 55%, var(--eqlg-navy-3));
    color: var(--eqlg-ink);
}

.eqlg-brand-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at 30% 20%, black, transparent 75%);
    pointer-events: none;
}

.eqlg-brand-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.eqlg-brand-glow-1 {
    width: 420px;
    height: 420px;
    top: -140px;
    right: -140px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.35), transparent 70%);
}

.eqlg-brand-glow-2 {
    width: 360px;
    height: 360px;
    bottom: -160px;
    left: -100px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 70%);
}

.eqlg-brand-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.eqlg-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.eqlg-brand-logo-img {
    max-width: 30px;
    max-height: 30px;
    border: 0 !important;
}

.eqlg-brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.eqlg-brand-mid {
    position: relative;
    z-index: 1;
    max-width: 30rem;
    margin: 2.5rem 0;
}

.eqlg-brand-headline {
    margin: 0 0 1rem;
    font-size: 2.15rem;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.eqlg-brand-sub {
    margin: 0 0 2rem;
    color: var(--eqlg-ink-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.eqlg-feature-list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eqlg-feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--eqlg-ink);
}

.eqlg-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(20, 184, 166, 0.32);
    color: #5eead4;
    font-size: 0.9rem;
}

.eqlg-brand-bottom {
    position: relative;
    z-index: 1;
}

.eqlg-brand-bottom-text {
    color: var(--eqlg-ink-muted);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ---------------- Form pane (right) ---------------- */

.eqlg-form-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: var(--eqlg-bg);
}

.eqlg-form-wrap {
    width: 100%;
    max-width: 400px;
}

.eqlg-form-header {
    margin-bottom: 2rem;
}

.eqlg-form-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(16, 185, 129, 0.06));
    border: 1px solid rgba(20, 184, 166, 0.24);
    color: var(--eqlg-teal);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eqlg-form-title {
    margin: 0 0 0.5rem;
    color: var(--eqlg-text);
    font-size: 1.65rem;
    font-weight: 800;
}

.eqlg-form-copy {
    margin: 0;
    color: var(--eqlg-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.eqlg-field {
    margin-bottom: 1.15rem;
}

.eqlg-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--eqlg-text);
    font-size: 0.84rem;
    font-weight: 700;
}

.eqlg-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.eqlg-input-icon {
    position: absolute;
    left: 1rem;
    color: var(--eqlg-text-muted);
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
}

.eqlg-input,
.eqlg-input-wrap .ui-inputfield,
.eqlg-input-wrap .ui-selectonemenu {
    width: 100%;
    min-height: 50px;
    padding: 0 0.9rem 0 2.85rem !important;
    background: var(--eqlg-input-bg) !important;
    border: 1px solid var(--eqlg-border) !important;
    border-radius: 12px !important;
    color: var(--eqlg-text) !important;
    font-size: 0.95rem;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eqlg-input::placeholder {
    color: #a1a9b8;
}

.eqlg-input:focus,
.eqlg-input-wrap .ui-inputfield:focus,
.eqlg-input-wrap .ui-selectonemenu.ui-state-focus {
    border-color: var(--eqlg-teal) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16) !important;
    outline: none;
}

.eqlg-input-wrap-select .ui-selectonemenu-label {
    display: flex !important;
    align-items: center;
    min-height: 50px;
    color: var(--eqlg-text) !important;
}

.eqlg-input-wrap-select .ui-selectonemenu-trigger {
    color: var(--eqlg-text-muted) !important;
}

.eqlg-actions {
    margin-top: 1.6rem;
}

.eqlg-submit-btn.ui-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 50px;
    background: linear-gradient(135deg, var(--eqlg-teal), var(--eqlg-emerald)) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    box-shadow: 0 16px 30px rgba(20, 184, 166, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.eqlg-submit-btn.ui-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(20, 184, 166, 0.34);
}

.eqlg-submit-btn-danger.ui-button {
    background: linear-gradient(135deg, #f97316, #ef4444) !important;
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.24);
}

.eqlg-form-footer {
    margin-top: 1.1rem;
    text-align: right;
}

.eqlg-forgot-link {
    color: var(--eqlg-teal);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.eqlg-forgot-link:hover {
    text-decoration: underline;
}

.eqlg-copyright {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--eqlg-text-muted);
    font-size: 0.8rem;
}

.eqlg-copyright a {
    color: inherit;
    text-decoration: none;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
    .eqlg-shell {
        grid-template-columns: 1fr;
    }

    .eqlg-brand-pane {
        padding: 2.25rem 1.75rem;
    }

    .eqlg-brand-mid {
        margin: 1.75rem 0;
    }

    .eqlg-brand-headline {
        font-size: 1.6rem;
    }

    .eqlg-feature-list {
        display: none;
    }
}

@media (max-width: 560px) {
    .eqlg-form-pane {
        padding: 2rem 1.25rem;
    }

    .eqlg-brand-sub {
        display: none;
    }
}
