/* ==========================================================================
   Sign-in — a split-screen entrance: brand story on the left, form on the right.
   ========================================================================== */

.login-page {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.login-shell {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    min-height: 100vh;
}

/* ==========================================================================
   Left — brand panel
   ========================================================================== */
.login-brand {
    position: relative;
    overflow: hidden;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    color: #fafaf9;
    background:
        radial-gradient(900px 420px at 15% 0%, rgba(245, 158, 11, .16), transparent 62%),
        linear-gradient(158deg, #2a2522 0%, #1c1917 48%, #121010 100%);
}

/* A faint diagonal weave gives the dark panel material rather than flat ink. */
.lb-grain {
    position: absolute; inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 6px);
    pointer-events: none;
}

.lb-glow {
    position: absolute;
    width: 460px; height: 460px;
    right: -170px; bottom: -190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, .30), transparent 68%);
    filter: blur(28px);
    pointer-events: none;
}

.lb-top, .lb-mid, .lb-foot { position: relative; z-index: 1; }

.lb-top { display: flex; align-items: center; gap: 13px; }

.lb-mark {
    width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 13px;
    background: linear-gradient(145deg, #fbbf24, var(--amber-deep));
    color: #1c1917;
    display: grid; place-items: center;
    font-size: 23px;
    box-shadow: 0 6px 18px -4px rgba(245, 158, 11, .5), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.lb-name { line-height: 1.25; }
.lb-name strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.lb-name span {
    display: block; font-size: 11px; color: #a8a29e;
    text-transform: uppercase; letter-spacing: .14em; font-weight: 600;
}

.lb-mid { margin-top: auto; margin-bottom: auto; padding: 40px 0; max-width: 520px; }

.lb-mid h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.18;
    margin: 0 0 16px;
    color: #fff;
}

.lb-mid > p {
    font-size: 15.5px;
    line-height: 1.6;
    color: #c5c0bb;
    margin: 0 0 32px;
    max-width: 440px;
}

.lb-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }

.lb-points li { display: flex; align-items: flex-start; gap: 14px; }

.lb-ico {
    width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 11px;
    background: rgba(245, 158, 11, .13);
    border: 1px solid rgba(245, 158, 11, .25);
    color: var(--amber);
    display: grid; place-items: center;
    font-size: 17px;
}

.lb-points li > span:last-child { font-size: 14px; color: #a8a29e; line-height: 1.5; }
.lb-points strong {
    display: block; color: #fafaf9; font-size: 14.5px;
    font-weight: 650; margin-bottom: 2px; letter-spacing: -.01em;
}

.lb-foot {
    font-size: 12.5px;
    color: #78716c;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ==========================================================================
   Right — form panel
   ========================================================================== */
.login-form-side {
    display: grid;
    place-items: center;
    padding: 40px 32px;
    background: var(--bg);
}

.lf-inner { width: 100%; max-width: 392px; }

.lf-mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 28px; }
.lf-mobile-brand strong { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }

.lf-head { margin-bottom: 26px; }
.lf-head h2 {
    font-size: 27px; font-weight: 800; letter-spacing: -.035em;
    margin: 0 0 6px; color: var(--ink);
}
.lf-head p { font-size: 14.5px; color: var(--muted); margin: 0; }

.lf-error {
    display: flex; align-items: flex-start; gap: 10px;
    background: var(--bad-soft);
    border: 1px solid var(--bad-line);
    border-left: 3px solid var(--bad);
    color: #7f1d1d;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 20px;
}
.lf-error i { font-size: 16px; margin-top: 1px; }

.lf-form { display: flex; flex-direction: column; gap: 17px; }

.lf-field label {
    display: block;
    font-size: 13px; font-weight: 650;
    color: var(--ink-2);
    margin-bottom: 7px;
    letter-spacing: -.005em;
}

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

.lf-input > i {
    position: absolute; left: 14px;
    font-size: 16px; color: var(--faint);
    pointer-events: none;
    transition: color .15s;
}

.lf-input input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 11px;
    padding: 0 14px 0 42px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s;
}
.lf-input input::placeholder { color: var(--faint); }

.lf-input input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .15);
}
.lf-input input:focus ~ i, .lf-input:focus-within > i { color: var(--amber-deep); }

#password { padding-right: 46px; }

.lf-eye {
    position: absolute; right: 6px;
    width: 36px; height: 36px;
    border: 0; background: none;
    border-radius: 8px;
    color: var(--faint);
    font-size: 16px;
    cursor: pointer;
    display: grid; place-items: center;
    transition: color .15s, background .15s;
}
.lf-eye:hover { color: var(--ink-2); background: var(--line-soft); }

.lf-check {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: var(--ink-2);
    cursor: pointer;
    user-select: none;
    margin-top: -2px;
}
.lf-check input {
    width: 17px; height: 17px;
    accent-color: var(--amber-deep);
    cursor: pointer;
    flex: 0 0 17px;
}

.lf-submit {
    height: 50px;
    margin-top: 6px;
    border: 1px solid var(--amber-deep);
    border-radius: 11px;
    background: linear-gradient(180deg, #fbbf24, var(--amber) 52%, var(--amber-deep));
    color: #1c1917;
    font-family: inherit;
    font-size: 15.5px; font-weight: 700;
    letter-spacing: -.01em;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    box-shadow: 0 2px 6px -1px rgba(180, 83, 9, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
    transition: background .15s, box-shadow .15s, transform .08s;
}
.lf-submit i { font-size: 16px; transition: transform .18s; }
.lf-submit:hover {
    background: linear-gradient(180deg, var(--amber), var(--amber-deep) 58%, #b45309);
    box-shadow: 0 6px 16px -3px rgba(180, 83, 9, .45), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.lf-submit:hover i { transform: translateX(3px); }
.lf-submit:active { transform: translateY(1px); }
.lf-submit:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(245, 158, 11, .35); }

.lf-foot {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 28px;
    font-size: 12.5px;
    color: var(--faint);
    text-align: center;
}
.lf-foot i { font-size: 14px; }

/* ==========================================================================
   Responsive — the brand panel steps aside on tablets and phones
   ========================================================================== */
@media (max-width: 991.98px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .lf-mobile-brand { display: flex; }
    .login-form-side {
        min-height: 100vh;
        background:
            radial-gradient(700px 320px at 50% -8%, rgba(245, 158, 11, .10), transparent 62%),
            var(--bg);
    }
}

@media (max-width: 575.98px) {
    .login-form-side { padding: 28px 20px; place-items: start center; padding-top: 44px; }
    .lf-head h2 { font-size: 24px; }
}

@media (max-height: 760px) and (min-width: 992px) {
    .login-brand { padding: 34px 40px; }
    .lb-mid { padding: 26px 0; }
    .lb-mid h1 { font-size: 30px; }
    .lb-mid > p { margin-bottom: 24px; }
    .lb-points { gap: 14px; }
}
