/* ===========================================================
   Auth pages (login / signup / pending / setup) — brand light
   =========================================================== */
:root {
  --bg: #f6f7fc; --surface: #ffffff; --surface-2: #f1f3fb;
  --text: #131732; --muted: #5c6489; --border: rgba(20,30,80,.12);
  --brand: #5b6bff; --brand-2: #9a52ff; --brand-3: #ff5ca8;
  --ok: #16b981; --err: #ef4d6b;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Sora", var(--font);
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); color: var(--text);
  background:
    radial-gradient(700px 500px at 85% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(600px 500px at -10% 20%, color-mix(in srgb, var(--brand-2) 20%, transparent), transparent 70%),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 5vw; }
.auth__card {
  width: min(430px, 100%); background: var(--surface);
  border: 1px solid var(--border); border-radius: 22px; padding: 2.2rem;
  box-shadow: 0 40px 90px -40px rgba(50,60,130,.45);
  position: relative; overflow: hidden;
}
.auth__card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
}
.auth__brand {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em;
  color: var(--text); display: inline-block; margin-bottom: 1rem;
}
.auth__brand span { color: var(--brand); }
.auth__brand:hover { text-decoration: none; }
.auth__card h1 { font-family: var(--display); font-size: 1.5rem; margin: 0 0 .3rem; letter-spacing: -.02em; }
.auth__card .sub { color: var(--muted); margin: 0 0 1.5rem; font-size: .93rem; }
.big-emoji { font-size: 3rem; margin: .3rem 0 .6rem; }

.field { margin-bottom: 1rem; text-align: left; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .35rem; font-weight: 500; }
.input {
  width: 100%; padding: .8rem .9rem; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  font-size: .95rem; font-family: inherit;
}
.input:focus { outline: none; border-color: var(--brand); background: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .85rem 1.2rem; border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--social {
  background: #fff; color: var(--text); border-color: var(--border); margin-bottom: .7rem;
}
.btn--social:hover { border-color: var(--brand); }
.btn--social .g, .btn--social .in {
  width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center;
  font-weight: 800; font-size: .8rem; color: #fff;
}
.btn--social .g  { background: conic-gradient(from -45deg, #ea4335, #fbbc05, #34a853, #4285f4, #ea4335); }
.btn--social .in { background: #0a66c2; border-radius: 4px; }

.social { margin-bottom: .4rem; }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .8rem; margin: 1rem 0 1.2rem; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }

.alert { padding: .75rem .9rem; border-radius: 12px; font-size: .9rem; margin-bottom: 1.1rem; text-align: left; }
.alert--err { background: color-mix(in srgb, var(--err) 12%, transparent); border: 1px solid var(--err); color: #a3203b; }
.alert--ok  { background: color-mix(in srgb, var(--ok) 14%, transparent); border: 1px solid var(--ok); color: #0a6e4e; }

.foot { margin-top: 1.3rem; font-size: .9rem; color: var(--muted); }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 6px; font-size: .85em; }
