:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg: #020617;
  --bg-glow-1: var(--hero-glow-1, rgba(56, 189, 248, 0.22));
  --bg-glow-2: var(--hero-glow-2, rgba(59, 130, 246, 0.26));
  --bg-glow-3: rgba(249, 115, 22, 0.24);

  --panel: var(--surface, rgba(15, 23, 42, 0.94));
  --panel-soft: var(--surface-soft, rgba(15, 23, 42, 0.85));

  --text: #e5e7eb;
  --muted: #9ca3af;

  --accent: #7aa2f7;
  --accent-soft: rgba(122, 162, 247, 0.18);

  --border: var(--border-subtle, rgba(148, 163, 184, 0.6));
  --border-soft: rgba(148, 163, 184, 0.25);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow:
    0 0 0 1px rgba(15, 23, 42, 0.95),
    0 24px 55px rgba(15, 23, 42, 0.95);

  --field: var(--surface-soft, rgba(15, 23, 42, 0.96));
  --focus: rgba(122, 162, 247, 0.45);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font: 14px/1.5 var(--font-body);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(1200px 800px at 0% 0%, var(--bg-glow-1), transparent 60%),
    radial-gradient(900px 700px at 100% 0%, var(--bg-glow-2), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, var(--bg-glow-3), transparent 65%),
    radial-gradient(circle at 0 0, #020617 0, #000 60%);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
}

.card {
  width: min(560px, 96vw);
  background:
    linear-gradient(135deg, var(--panel), var(--panel-soft));
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  z-index: 2;
}

.login-mascot {
  position: fixed;
  left: clamp(10px, 2vw, 28px);
  bottom: clamp(8px, 2vw, 24px);
  width: min(154px, 16.8vw);
  aspect-ratio: 23 / 27;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  background-image: url("/dawg_sittin_a.png");
  background-repeat: no-repeat;
  background-position: 0% 0%;
  background-size: 600% 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: none;
  opacity: 1;
}

@media (max-width: 980px) {
  .login-mascot {
    width: min(119px, 15.4vw);
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .login-mascot {
    display: none;
  }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.25), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(59, 130, 246, 0.33), transparent 60%);
  mix-blend-mode: soft-light;
  opacity: 0.45;
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title::before {
  content: none !important;
  display: none !important;
}

.subtitle {
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background:
    radial-gradient(circle at 0 0, var(--panel), var(--panel-soft));
  color: var(--muted);
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill::before {
  content: "â†©";
  font-size: 11px;
  color: var(--accent);
}

.tabs {
  display: inline-flex;
  gap: 6px;
  border-radius: 999px;
  padding: 3px;
  background: radial-gradient(circle at 0 0, var(--panel), rgba(0, 0, 0, 0.9));
  border: 1px solid var(--border-soft);
  max-width: 100%;
}

.tab {
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 140ms ease-out,
    color 140ms ease-out,
    border-color 140ms ease-out,
    box-shadow 140ms ease-out;
}

.tab[aria-selected="true"] {
  color: #f9fafb;
  border-color: var(--accent);
  background:
    radial-gradient(circle at 0 0, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.55));
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 6px 18px rgba(15, 23, 42, 0.9);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel[hidden] {
  display: none;
}

.block {
  background:
    linear-gradient(135deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7);
}

.block-title {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 650;
}

.btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.04), var(--panel));
  color: #f9fafb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 80ms ease,
    box-shadow 120ms ease,
    filter 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
  outline: none;
  text-align: center;
}

.btn.primary {
  border-color: var(--accent);
  background:
    radial-gradient(circle at 0 0, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--accent-soft), var(--panel));
}

.google-logo {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.6);
}

.google-logo svg {
  width: 16px;
  height: 16px;
  display: block;
}

.btn.commit {
  border-color: var(--accent) !important;
  background:
    radial-gradient(circle at 0 0, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--accent), var(--panel-soft)) !important;
  color: #eff6ff;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.35),
    0 10px 26px rgba(15, 23, 42, 0.96);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 14px 30px rgba(0, 0, 0, 0.9);
  filter: brightness(1.03);
}

.btn:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.9),
    0 4px 16px rgba(0, 0, 0, 0.9);
  filter: brightness(0.98);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--border-soft);
  flex: 1 1 auto;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--field);
  color: var(--text);
  padding: 9px 10px;
  font-size: 13px;
  outline: none;
  transition:
    border-color 140ms ease-out,
    box-shadow 140ms ease-out,
    background 140ms ease-out;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
  background: rgba(15, 23, 42, 0.98);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.link {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
}

.link:hover {
  text-decoration: underline;
}

.note {
  color: var(--muted);
  font-size: 12px;
  min-height: 18px;
  line-height: 1.5;
}

.note.warn {
  color: #fca5a5;
  background: var(--danger-soft);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
}

.footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(15, 23, 42, 0.75);
  padding-top: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
