:root {
  --bg: #eef5ff;
  --surface: #ffffff;
  --text: #132238;
  --muted: #5f7087;
  --line: #d9e4f1;
  --brand: #1f78ff;
  --brand-dark: #1359c8;
  --brand-soft: #e7f1ff;
  --accent: #ff8a1f;
  --accent-soft: #fff1e2;
  --shadow: 0 20px 44px rgba(19, 34, 56, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI Variable", "Bahnschrift", "Trebuchet MS", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(31, 120, 255, 0.08), transparent 26%),
    radial-gradient(circle at top left, rgba(255, 138, 31, 0.08), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 16px)); margin: 0 auto; }

.site-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(31, 120, 255, 0.14);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--brand-dark);
}

.site-logo img { width: 40px; height: 40px; object-fit: contain; }
.site-logo span { font-size: 24px; letter-spacing: .03em; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.header-link, .header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.header-link { color: var(--muted); }
.header-button.ghost { border: 1px solid var(--line); background: rgba(255,255,255,.88); }
.header-button.primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
}

.page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 28px 0;
}

.auth-card {
  width: min(520px, 100%);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at top right, rgba(31, 120, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.05;
}

.auth-card > p {
  margin-bottom: 22px;
  color: var(--muted);
}

.flash-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.flash-list li {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: #9a4e00;
  border: 1px solid #ffd9ad;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
}

.field input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .18);
  border-color: #8db8ff;
}

.submit-row {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.submit-btn {
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(31, 120, 255, 0.22);
}

.aux-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
}

.aux-links a {
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 640px) {
  .site-logo span { font-size: 18px; }
  .header-link { display: none; }
  .auth-card { padding: 22px 18px; border-radius: 20px; }
  .auth-card h1 { font-size: 28px; }
  .aux-links { flex-direction: column; }
}
