/* Sign-in page.
   Extracted from templates/admissions/login.html so the Django page and the
   React page at /login render from one stylesheet instead of two copies that
   drift apart. Edit here; both pick it up. */

:root {
        --lg-gold: #d1aa66;
        --lg-gold-dark: #b08c4a;
        --lg-gold-light: #e6cf9c;
        --lg-ink: #1a1a1a;
        --lg-cream: #faf6ee;
    }

    .main-content:has(.login-split) { background: #fff; }

    /* Contained, centered card - aligned to the same width as the header
       banner/footer .container, with breathing room on either side, rather
       than bleeding edge-to-edge. */
    .login-shell { padding: clamp(1.5rem, 4vw, 3rem) 0; }

    .login-split {
        display: grid;
        grid-template-columns: 1fr;
        min-height: 72vh;
        border-radius: 1.1rem;
        overflow: hidden;
        box-shadow: 0 18px 50px rgba(0,0,0,.14);
        gap: 0;
    }
    /* Mobile: form first (immediate access), image second - a full-height
       photo above the fold would bury the actual sign-in action. */
    .login-form-col { order: 1; }
    .login-visual-col { order: 2; }
    @media (min-width: 992px) {
        .login-split { grid-template-columns: 3fr 2fr; min-height: 76vh; }
        .login-visual-col { order: 1; }
        .login-form-col { order: 2; }
    }

    /* ══════════════════ Left - form ══════════════════ */
    .login-form-col {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem 1.5rem;
        background: #fff;
    }
    .login-form-inner { width: 100%; max-width: 400px; }

    .login-eyebrow {
        display: inline-flex; align-items: center; gap: .5rem;
        font-size: .74rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: .14em; color: var(--lg-gold-dark);
        margin-bottom: .9rem;
    }
    .login-eyebrow .dot {
        width: 7px; height: 7px; border-radius: 50%; background: var(--lg-gold);
        box-shadow: 0 0 0 3px rgba(209,170,102,.25);
    }

    .login-title {
        font-family: 'Poppins', sans-serif; font-weight: 700;
        font-size: clamp(1.8rem, 3vw, 2.3rem);
        color: var(--lg-ink); line-height: 1.15; margin-bottom: .5rem;
    }
    .login-sub { color: #6b7280; font-size: .96rem; margin-bottom: 2rem; line-height: 1.55; }

    .lg-field { position: relative; margin-bottom: 1.15rem; }
    .lg-field label {
        display: block; font-size: .78rem; font-weight: 600; color: #374151;
        margin-bottom: .4rem; letter-spacing: .01em;
    }
    .lg-input-wrap { position: relative; }
    .lg-input-wrap i, .lg-input-wrap svg {
        position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
        width: 17px; height: 17px; color: #9ca3af; pointer-events: none;
        transition: color .2s ease;
    }
    .lg-field input {
        width: 100%; padding: .78rem .9rem .78rem 2.6rem;
        border: 1.5px solid #e5e7eb; border-radius: .6rem;
        font-size: .95rem; color: var(--lg-ink);
        transition: border-color .2s ease, box-shadow .2s ease;
        background: #fbfaf8;
    }
    .lg-field input:focus {
        outline: none; border-color: var(--lg-gold);
        box-shadow: 0 0 0 3.5px rgba(209,170,102,.18);
        background: #fff;
    }
    .lg-field input:focus ~ .lg-input-wrap i,
    .lg-input-wrap:has(input:focus) i { color: var(--lg-gold-dark); }

    .lg-row { display: flex; align-items: center; justify-content: space-between; margin: 1.3rem 0 1.6rem; }
    .lg-remember { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: #4b5563; }
    .lg-remember input { accent-color: var(--lg-gold); width: 15px; height: 15px; cursor: pointer; }
    .lg-forgot { font-size: .86rem; color: var(--lg-gold-dark); text-decoration: none; font-weight: 600; }
    .lg-forgot:hover { color: var(--lg-ink); text-decoration: underline; }

    .lg-btn {
        width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
        background: linear-gradient(135deg, var(--lg-gold) 0%, var(--lg-gold-dark) 100%);
        color: #1a1a1a; font-weight: 700; font-size: .98rem;
        padding: .85rem 1.5rem; border: none; border-radius: .6rem;
        box-shadow: 0 10px 26px rgba(209,170,102,.38);
        transition: transform .18s ease, box-shadow .18s ease;
        cursor: pointer;
    }
    .lg-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(209,170,102,.5); color: #1a1a1a; }
    .lg-btn:disabled { opacity: .65; transform: none; cursor: not-allowed; }

    .lg-support { text-align: center; margin-top: 1.8rem; font-size: .84rem; color: #9ca3af; }
    .lg-support a { color: var(--lg-gold-dark); text-decoration: none; font-weight: 600; }
    .lg-support a:hover { text-decoration: underline; }

    .lg-alert {
        display: flex; align-items: flex-start; gap: .6rem;
        border-radius: .55rem; padding: .8rem 1rem; margin-bottom: 1.3rem;
        font-size: .87rem; line-height: 1.5;
    }
    .lg-alert i, .lg-alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .15rem; }
    .lg-alert-error { background: #fdf2f2; color: #9b2c2c; border: 1px solid #f5c6c6; }
    .lg-alert-info  { background: #f0f6ff; color: #1e4d8b; border: 1px solid #bfdbfe; }

    /* ══════════════════ Left - background-image visual ══════════════════ */
    .login-visual-col {
        position: relative;
        overflow: hidden;
        background-image: url('/static/images/Admissions_Banner.jpg');
        background-size: cover;
        background-position: center;
        display: flex; flex-direction: column; justify-content: flex-end;
        padding: clamp(2rem, 4vw, 3.5rem);
        min-height: 340px;
    }
    /* scrim so the overlaid text stays legible over any photo */
    .login-visual-col::before {
        content: ''; position: absolute; inset: 0;
        background:
            linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%),
            radial-gradient(900px 480px at 85% -10%, rgba(209,170,102,.22), transparent 60%);
        pointer-events: none;
    }

    .lv-badge {
        position: relative; z-index: 2;
        display: inline-flex; align-items: center; gap: .5rem;
        font-size: .72rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: .12em; color: var(--lg-gold-light);
        margin-bottom: 1rem;
        opacity: 0; transform: translateY(14px);
        animation: lv-rise .7s cubic-bezier(.2,.7,.3,1) .2s forwards;
    }
    .lv-badge svg, .lv-badge i { width: 15px; height: 15px; }

    .lv-quote {
        position: relative; z-index: 2;
        font-family: 'Poppins', sans-serif; font-weight: 600;
        font-size: clamp(1.5rem, 2.6vw, 2.05rem);
        line-height: 1.28; color: #fff; max-width: 440px;
        opacity: 0; transform: translateY(14px);
        animation: lv-rise .7s cubic-bezier(.2,.7,.3,1) .35s forwards;
    }
    .lv-quote .accent { color: var(--lg-gold); }
    .lv-quote-sub {
        position: relative; z-index: 2;
        color: #e5e5e5; font-size: .92rem; margin-top: .9rem; max-width: 400px; line-height: 1.6;
        opacity: 0; transform: translateY(14px);
        animation: lv-rise .7s cubic-bezier(.2,.7,.3,1) .5s forwards;
    }
    @keyframes lv-rise { to { opacity: 1; transform: none; } }

/* ── Sign-up: applicant-type picker + field help/error ───────────────────── */
.lg-applicant-type { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .3rem; }
.lg-type-option {
  display: flex; align-items: center; gap: .5rem; cursor: pointer;
  border: 1px solid #e2d8c4; border-radius: .6rem; padding: .7rem .8rem;
  font-size: .9rem; font-weight: 600; color: #4a3410; background: #fff; transition: all .15s;
}
.lg-type-option:hover { background: #faf6ee; }
.lg-type-option input { accent-color: #d1aa66; }
.lg-type-option.is-selected, .lg-type-option:has(input:checked) {
  border-color: #d1aa66; background: #f8f1e2; box-shadow: 0 0 0 1px #d1aa66 inset;
}
.lg-help { font-size: .78rem; color: #8a7a57; margin-top: .25rem; }
.lg-error { font-size: .78rem; color: #b3261e; margin-top: .25rem; }

/* Field validation state (React auth pages). */
.lg-input-wrap.lg-invalid input { border-color: #b3261e; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.lg-error { display: block; }

/* The show/hide button's icon must not inherit the field's decorative-icon rule
   (absolute, left, pointer-events: none), or it lands in the wrong place and cannot be clicked. */
.lg-input-wrap .lg-eye { z-index: 2; pointer-events: auto; }
.lg-input-wrap .lg-eye svg {
    position: static; transform: none; width: 18px; height: 18px;
    color: #6b7280; pointer-events: none;
}
.lg-input-wrap .lg-eye:hover svg, .lg-input-wrap .lg-eye:focus-visible svg { color: #1a1a1a; }
