/* /sign-in page — two-pane layout. Tokens come from _tokens.css. */

.auth {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(520px, 1.1fr);
    min-height: 100vh;
}

/* ---------- Left brand pane ---------- */
.pane-brand {
    position: relative;
    background:
        radial-gradient(900px 480px at 12% 0%, rgba(37, 99, 235, 0.22), transparent 60%),
        radial-gradient(700px 500px at 100% 100%, rgba(99, 102, 241, 0.16), transparent 65%),
        linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
    color: var(--sidebar-ink);
    padding: 44px 52px 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pane-brand .grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 50%, transparent 100%);
            mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 50%, transparent 100%);
    pointer-events: none;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.signin-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    display: grid; place-items: center;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 6px 18px rgba(37,99,235,0.35);
}
.signin-word {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: #F8FAFC;
}
.signin-word b { font-weight: 700; }

.pane-brand-body {
    margin-top: auto;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93C5FD;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.eyebrow .pip {
    width: 6px; height: 6px; border-radius: 999px;
    background: #60A5FA;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.20);
}

.tagline {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.18;
    color: #F8FAFC;
    margin: 0;
    max-width: 28ch;
}
.tagline em {
    font-style: normal;
    color: #93C5FD;
}

.sub {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.55;
    max-width: 44ch;
    margin: 0;
}

.deco {
    margin-top: 4px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(15, 23, 42, 0.35);
    border-radius: 12px;
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(2px);
}
.deco-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.deco-head .l { color: #CBD5E1; font-weight: 600; letter-spacing: -0.005em; }
.deco-head .meta { font-feature-settings: 'tnum'; }
.deco svg { display: block; width: 100%; height: 70px; }
.deco-foot {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-feature-settings: 'tnum';
}
.deco-foot .v {
    font-size: 20px;
    font-weight: 600;
    color: #F1F5F9;
    letter-spacing: -0.02em;
}
.deco-foot .v .cur { font-size: 12px; color: #94A3B8; margin-right: 1px; vertical-align: 2px; font-weight: 500; }
.deco-foot .d {
    font-size: 12px;
    font-weight: 600;
    color: #34D399;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.deco-foot .lbl {
    margin-left: auto;
    font-size: 11px;
    color: #64748B;
    font-weight: 500;
}

.pane-brand-foot {
    margin-top: 28px;
    font-size: 11.5px;
    color: #475569;
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

/* ---------- Right form pane ---------- */
.pane-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 56px;
    background: var(--bg);
}
.form-wrap {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.top-mark {
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-mark .signin-mark {
    width: 26px; height: 26px;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.top-mark .signin-word {
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
}
.top-mark .signin-word b { font-weight: 700; }

.signin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.signin-card h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
}
.signin-card .lede {
    margin: 8px 0 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
}

.access {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: var(--primary-soft);
    border: 1px solid #DBEAFE;
    border-radius: 10px;
    font-size: 12.5px;
    color: #1E3A8A;
    line-height: 1.5;
}
.access-ico {
    flex-shrink: 0;
    width: 18px; height: 18px;
    color: var(--primary);
    margin-top: 1px;
}
.access b { font-weight: 600; color: #1E3A8A; }

.sso-form { margin: 0; }
.btn-google {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border-strong);
    height: 48px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: -0.005em;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, background .15s, box-shadow .15s, transform .05s;
}
.btn-google:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
    box-shadow: var(--shadow-md);
}
.btn-google:active { transform: translateY(1px); }
.btn-google:focus-visible {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.18);
}
.btn-google svg.g { width: 18px; height: 18px; flex-shrink: 0; }

.helper {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}
.helper .em { color: var(--ink-2); font-weight: 500; }

.foot {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    color: var(--muted-2);
    letter-spacing: 0.04em;
    font-feature-settings: 'tnum';
}
.foot .sep {
    margin: 0 8px;
    color: #CBD5E1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .auth { grid-template-columns: minmax(380px, 1fr) minmax(480px, 1fr); }
    .pane-brand { padding: 36px 40px 32px; }
    .pane-form { padding: 48px 36px; }
    .tagline { font-size: 28px; }
}

@media (max-width: 860px) {
    .auth {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        min-height: 100vh;
    }
    .pane-brand {
        padding: 22px 24px 24px;
        min-height: auto;
    }
    .pane-brand-body { margin-top: 18px; gap: 16px; }
    .tagline { font-size: 22px; max-width: none; }
    .sub { font-size: 13px; }
    .deco { display: none; }
    .pane-brand-foot { display: none; }

    .pane-form { padding: 28px 20px 40px; }
    .signin-card { padding: 28px 24px; }
    .signin-card h1 { font-size: 22px; }
}

@media (max-width: 480px) {
    .pane-brand { padding: 18px 20px 20px; }
    .tagline { font-size: 20px; }
    .form-wrap { gap: 24px; }
    .signin-card { padding: 24px 20px; gap: 18px; }
}
