/* ============================================================================
   Login page (Account/Login) — split-screen, themed to the DSB design system.
   Tokens from dsb-sidebar.css (global via _Layout). The two-step flow is
   preserved (email -> Continue -> password/board/submit reveal via LogIn.js).
   ============================================================================ */

.login-split {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-family: var(--font-sans);
    background: var(--bg);
    z-index: 1000;
}

/* ---- Left: branding panel ---- */
.login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 56px 64px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 100% 38px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 38px 100%,
        #0F1622;
}
.login-brand__inner { margin-top: auto; }
.login-brand__logo {
    width: 300px;
    max-width: 72%;
    height: auto;
    display: block;
    margin-bottom: 22px;
}
.login-brand__tagline {
    max-width: 390px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}
.login-brand__copy {
    margin: auto 0 0;
    padding-top: 40px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.35);
}

/* ---- Right: form panel ---- */
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg);
}
.login-form { width: 100%; max-width: 360px; }
.login-form__title { font-size: 26px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.login-form__sub { font-size: 13.5px; color: var(--ink-3); margin: 0 0 26px; line-height: 1.5; }

.login-field { margin-bottom: 16px; }
.login-field > label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 6px;
}
.login-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: none;
    outline: none;
    transition: border-color 120ms, box-shadow 120ms;
}
.login-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(96, 192, 48, 0.18);
}
select.login-input { height: 44px; cursor: pointer; }

/* Password field: the WRAPPER is the bordered box; the input is bare/transparent
   and the eye is a flex child — so the icon sits inside the field with no absolute
   positioning to fail or get overridden. Mirrors template5. */
.login-pass-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: border-color 120ms, box-shadow 120ms;
}
.login-pass-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(96, 192, 48, 0.18);
}
.login-pass-wrap .login-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    padding-right: 4px;
}
.login-pass-wrap .login-input:focus {
    border: 0 !important;
    box-shadow: none !important;
}
.login-input, .login-pass-wrap { box-sizing: border-box; }
#Password, #Email { max-width: 100%; }
.login-eye {
    flex: 0 0 auto;
    width: 34px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    color: var(--ink-3);
}
.login-eye:hover { color: var(--ink-2); }
.login-eye .glyphicon { font-size: 15px; top: 0; }

/* Actions */
.login-actions { margin-top: 18px; }
.login-actions__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.login-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--ink-2);
    cursor: pointer;
}
.login-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.login-link { font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.login-link:hover { color: var(--accent); text-decoration: none; }

/* Buttons */
.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-sans);
    border: 1px solid transparent;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: filter 120ms, background 120ms, border-color 120ms;
}
.login-btn--primary { background: var(--accent); color: #0F1623; }
.login-btn--primary:hover { filter: brightness(1.05); }
.login-btn--ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line); }
.login-btn--ghost:hover { background: var(--bg-2); }
.login-continue { margin-top: 4px; }
.login-btn--reset { margin-top: 10px; }

.login-error { display: block; color: #e0533d; font-size: 12px; margin-top: 6px; }

/* ---- Responsive: hide brand panel, single column ---- */
@media (max-width: 860px) {
    .login-split { grid-template-columns: 1fr; }
    .login-brand { display: none; }
}
