:root {
    --brand:      #26A8E6;
    --brand-dark: #1a8fc7;
    --text:       #0f172a;
    --muted:      #64748b;
    --border:     #e2e8f0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Instrument Sans', sans-serif;
    background: linear-gradient(160deg, #f0f9ff 0%, #eef2ff 50%, #fff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ── Card ── */
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 32px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
}

/* ── Logo ── */
.auth-logo { display: flex; justify-content: center; margin-bottom: 36px; }
.auth-logo a { display: flex; }
.auth-logo svg { width: 52px; height: 52px; }

/* ── Header ── */
.auth-title { font-size: 1.5rem; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 6px; }
.auth-sub   { font-size: 0.88rem; color: var(--muted); text-align: center; margin-bottom: 32px; }
.auth-sub a { color: var(--brand); text-decoration: none; font-weight: 600; }
.auth-sub a:hover { text-decoration: underline; }

/* ── Alert ── */
.alert-error {
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 10px; color: #b91c1c;
    padding: 11px 16px; font-size: 0.85rem; margin-bottom: 20px;
}

/* ── Fields ── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 6px; letter-spacing: .02em; }
.form-input  {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 0.95rem; font-family: inherit; color: var(--text);
    background: #fafafa; outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-input:focus   { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(38,168,230,.12); }
.form-input.is-invalid { border-color: #ef4444; }
.form-error { font-size: 0.78rem; color: #ef4444; margin-top: 4px; }

/* ── Remember / extras ── */
.form-extras { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.form-check  { display: flex; align-items: center; gap: 8px; }
.form-check input   { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }
.form-check label   { font-size: 0.84rem; color: var(--muted); cursor: pointer; }
.forgot-link { font-size: 0.82rem; color: var(--brand); text-decoration: none; white-space: nowrap; }
.forgot-link:hover  { text-decoration: underline; }

/* ── Submit ── */
.btn-auth {
    width: 100%; padding: 12px;
    background: var(--brand); color: #fff;
    border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: background .15s, transform .1s;
}
.btn-auth:hover  { background: var(--brand-dark); }
.btn-auth:active { transform: scale(.98); }

/* ── Back link ── */
.auth-back { margin-top: 20px; text-align: center; font-size: 0.82rem; color: var(--muted); }
.auth-back a { color: var(--muted); text-decoration: none; }
.auth-back a:hover { color: var(--text); }

/* ── Mobile ── */
@media (max-width: 480px) {
    .auth-card { padding: 36px 24px; }
    .auth-title { font-size: 1.3rem; }
}
