/* ============================================================
   Login — split layout + form panel (premium, brand-aligned)
   ============================================================ */

.login {
    min-height: 100vh; min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;          /* MOBILE: stacked */
    background: var(--surface);
}

/* ---- Form panel ---- */
.login__form-wrap {
    display: flex; align-items: center; justify-content: center;
    padding: var(--sp-8) var(--sp-5);
    background: var(--surface);
}
.login__card {
    width: 100%; max-width: 400px;
    opacity: 0; transform: translateY(12px); animation: cardUp .6s var(--ease) .15s forwards;
}
@keyframes cardUp { to { opacity: 1; transform: translateY(0); } }
.login__card h2 { font-size: var(--fs-2xl); margin-bottom: 4px; }
.login__card .sub { color: var(--ink-500); font-size: var(--fs-base); margin-bottom: var(--sp-6); }

.login__row { display: flex; justify-content: center; margin: var(--sp-4) 0 0; }
.login__row a { font-size: var(--fs-sm); font-weight: 600; color: var(--brand-600); }
.login__row a:hover { color: var(--gold-deep); }

.login__footer { margin-top: var(--sp-6); font-size: var(--fs-xs); color: var(--ink-500); text-align: center; }

/* show/hide password toggle */
.input-toggle { position: absolute; right: .6rem; background: none; border: none; color: var(--ink-500);
    padding: .45rem; border-radius: 8px; cursor: pointer; font-size: 1.15rem; }
.input-toggle:hover { color: var(--brand-700); }

/* ---- Modal (forgot password) ---- */
.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: var(--sp-4); }
.modal.open { display: grid; }
.modal__overlay { position: absolute; inset: 0; background: rgba(6,34,63,.55); backdrop-filter: blur(2px); }
.modal__box { position: relative; width: 100%; max-width: 420px; background: var(--surface);
    border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: var(--sp-6); animation: pop .25s var(--ease); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal__box h3 { font-size: var(--fs-xl); }
.modal__close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 1.5rem; color: var(--ink-500); cursor: pointer; }

/* ============================================================
   Mobile — app-style: branded top + white sheet sliding up
   ============================================================ */
@media (max-width: 1023px) {
    .login { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
    .login__form-wrap {
        flex: 1; position: relative; z-index: 2;
        margin-top: -22px; border-radius: 26px 26px 0 0;
        align-items: flex-start; justify-content: flex-start;
        padding: var(--sp-8) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom));
        background: var(--surface);
        box-shadow: 0 -16px 36px rgba(6,32,63,.22);   /* soft lift for the 3D feel */
    }
    .login__card { max-width: 100%; }
    .login__card h2 { font-size: var(--fs-2xl); }
}

/* ============================================================
   Laptop & Desktop — split 2-panel
   ============================================================ */
@media (min-width: 1024px) {
    .login { grid-template-columns: 1.05fr 1fr; height: 100vh; height: 100dvh; max-height: 100vh; overflow: hidden; }
    .login__form-wrap { padding: var(--sp-10); overflow-y: auto; }
}
@media (min-width: 1440px) {
    .login__card { max-width: 420px; }
}
