/* The Node Auth UI */
:root {
    --auth-bg: #08111f;
    --auth-panel: rgba(13, 24, 43, 0.92);
    --auth-panel-2: rgba(17, 32, 57, 0.94);
    --auth-border: rgba(148, 163, 184, 0.22);
    --auth-text: #f8fafc;
    --auth-muted: #a7b4c8;
    --auth-primary: #22c55e;
    --auth-primary-dark: #16a34a;
    --auth-warning: #f59e0b;
    --auth-danger: #ef4444;
    --auth-info: #38bdf8;
    --auth-radius: 22px;
}
* { box-sizing: border-box; }
body.auth-page {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(34,197,94,.20), transparent 35%),
        radial-gradient(circle at bottom right, rgba(56,189,248,.16), transparent 35%),
        linear-gradient(135deg, #08111f 0%, #0e1728 52%, #111827 100%);
    color: var(--auth-text);
}
.auth-topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--auth-text);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.auth-brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--auth-primary), #38bdf8);
    box-shadow: 0 16px 40px rgba(34,197,94,.24);
}
.auth-brand span small {
    display: block;
    font-size: 12px;
    color: var(--auth-muted);
    font-weight: 600;
    margin-top: 2px;
}
.auth-top-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.auth-top-links a,
.auth-link-pill {
    color: var(--auth-text);
    border: 1px solid var(--auth-border);
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    background: rgba(255,255,255,.04);
}
.auth-top-links a:hover,
.auth-link-pill:hover { border-color: rgba(34,197,94,.5); }
.auth-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 70px;
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 36px;
    align-items: center;
}
.auth-hero h1 {
    font-size: clamp(38px, 5vw, 72px);
    line-height: .95;
    letter-spacing: -0.06em;
    margin: 0 0 18px;
}
.auth-hero p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--auth-muted);
    max-width: 660px;
    margin: 0 0 24px;
}
.auth-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    margin-top: 26px;
    max-width: 720px;
}
.auth-feature {
    border: 1px solid var(--auth-border);
    background: rgba(255,255,255,.05);
    border-radius: 18px;
    padding: 18px;
}
.auth-feature i { color: var(--auth-primary); margin-bottom: 8px; }
.auth-feature strong { display:block; margin-bottom: 4px; }
.auth-feature span { color: var(--auth-muted); font-size: 14px; line-height: 1.45; }
.auth-card {
    border: 1px solid var(--auth-border);
    background: linear-gradient(180deg, var(--auth-panel), var(--auth-panel-2));
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
    border-radius: var(--auth-radius);
    padding: 30px;
}
.auth-card-header { text-align: center; margin-bottom: 24px; }
.auth-card-header .auth-card-icon {
    width: 58px; height: 58px; border-radius: 18px; display:grid; place-items:center;
    margin: 0 auto 14px;
    background: rgba(34,197,94,.14);
    color: var(--auth-primary);
    font-size: 24px;
}
.auth-card-header h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.04em; }
.auth-card-header p { margin: 0; color: var(--auth-muted); line-height: 1.5; }
.auth-oauth-grid { display:grid; gap: 10px; margin-bottom: 18px; }
.auth-oauth-btn,
.auth-submit {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
    text-decoration:none;
    font-weight: 800;
    border: 1px solid var(--auth-border);
    cursor: pointer;
}
.auth-oauth-btn { color: var(--auth-text); background: rgba(255,255,255,.055); }
.auth-oauth-btn:hover { background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.25); }
.auth-oauth-btn.disabled { opacity:.48; pointer-events:none; }
.auth-submit {
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
    color: #04110a;
    border: 0;
    font-size: 15px;
    box-shadow: 0 18px 40px rgba(34,197,94,.2);
}
.auth-submit:hover { filter: brightness(1.05); }
.auth-divider { display:flex; align-items:center; gap:12px; margin: 18px 0; color: var(--auth-muted); font-size:12px; font-weight:800; letter-spacing:.08em; }
.auth-divider::before, .auth-divider::after { content:""; height:1px; background:var(--auth-border); flex:1; }
.auth-form { display:grid; gap: 15px; }
.auth-row { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.auth-field label { display:flex; align-items:center; gap:8px; margin: 0 0 7px; color:#dbeafe; font-size: 13px; font-weight: 800; }
.auth-input {
    width:100%;
    min-height:48px;
    padding: 12px 14px;
    border-radius: 14px;
    border:1px solid var(--auth-border);
    background: rgba(2,6,23,.42);
    color: var(--auth-text);
    outline: none;
}
.auth-input:focus { border-color: rgba(34,197,94,.7); box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.auth-options { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; color:var(--auth-muted); font-size:14px; }
.auth-options a, .auth-card a { color: #86efac; text-decoration:none; font-weight:800; }
.auth-options a:hover, .auth-card a:hover { text-decoration: underline; }
.auth-checkbox { display:flex; align-items:center; gap:8px; }
.auth-alert {
    display:flex; gap:10px; align-items:flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    border:1px solid var(--auth-border);
    line-height:1.45;
}
.auth-alert-success { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); }
.auth-alert-error { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); }
.auth-alert-warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.35); }
.auth-alert-info { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.35); }
.auth-footnote { text-align:center; margin-top:18px; color:var(--auth-muted); line-height:1.55; }
.auth-meta-box {
    margin-top: 18px;
    padding: 14px;
    background: rgba(56,189,248,.08);
    border: 1px solid rgba(56,189,248,.22);
    border-radius: 16px;
    color: var(--auth-muted);
    line-height:1.55;
    font-size: 14px;
}
.auth-provider-status { display:grid; gap:8px; margin-top:14px; }
.auth-provider-status div { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--auth-muted); font-size:13px; }
.auth-badge-ok, .auth-badge-off { padding:4px 8px; border-radius:999px; font-weight:800; font-size:11px; }
.auth-badge-ok { color:#052e16; background:#86efac; }
.auth-badge-off { color:#fee2e2; background:rgba(239,68,68,.25); }
@media (max-width: 920px) {
    .auth-wrap { grid-template-columns: 1fr; padding-top: 10px; }
    .auth-hero { text-align:center; }
    .auth-hero p { margin-inline:auto; }
    .auth-feature-grid { margin-inline:auto; }
}
@media (max-width: 620px) {
    .auth-topbar { align-items:flex-start; flex-direction:column; }
    .auth-wrap { width:min(100% - 22px, 1180px); }
    .auth-card { padding: 22px; }
    .auth-row, .auth-feature-grid { grid-template-columns: 1fr; }
}
