:root {
  --honey: #F5B301;
  --honey-deep: #C98A00;
  --ink: #1B160C;
  --text: #2A2415;
  --muted: #6F6450;
  --bg: #FFFBF1;
  --surface: #FFFFFF;
  --line: rgba(27, 22, 12, 0.12);
  --field: #FFFDF7;
  --error: #B42318;
  --error-bg: #FEF3F2;
  --info-bg: #FFF6D6;
  --shadow: 0 1px 2px rgba(27, 22, 12, 0.06), 0 18px 40px -18px rgba(27, 22, 12, 0.25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #F3ECDC;
    --muted: #B3A78E;
    --bg: #12100A;
    --surface: #1C1910;
    --line: rgba(255, 240, 200, 0.14);
    --field: #16130C;
    --error: #FDA29B;
    --error-bg: rgba(180, 35, 24, 0.18);
    --info-bg: rgba(245, 179, 1, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 44px -18px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px 16px;
  background: radial-gradient(700px 420px at 50% -10%, rgba(245, 179, 1, 0.22), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.panel {
  width: min(420px, 100%);
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; text-decoration: none; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand b { color: var(--honey-deep); font-weight: 800; }
@media (prefers-color-scheme: dark) { .brand b { color: var(--honey); } }
h1 { margin: 0 0 4px; font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.15; }
.sub { margin: 0 0 22px; color: var(--muted); }
.google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--field); color: var(--text);
  font-weight: 650; text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.google:hover { border-color: var(--honey); transform: translateY(-1px); }
.create {
  display: block; width: 100%; margin-top: 10px; padding: 12px 16px;
  border-radius: 12px; background: var(--honey); color: var(--ink);
  font-weight: 700; text-align: center; text-decoration: none;
  transition: transform 0.15s;
}
.create:hover { transform: translateY(-1px); }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 0.85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--field); color: var(--text);
  font: inherit; font-weight: 400;
}
input:focus { outline: 3px solid rgba(245, 179, 1, 0.45); outline-offset: 1px; border-color: var(--honey); }
button {
  margin-top: 4px; padding: 12px 16px;
  border: 0; border-radius: 12px;
  background: var(--ink); color: #FFF8E7;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform 0.15s;
}
button:hover { transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { button { background: var(--honey); color: var(--ink); } }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.notice { margin: 0 0 18px; padding: 10px 12px; border-radius: 10px; font-size: 0.92rem; }
.notice.error { background: var(--error-bg); color: var(--error); }
.notice.info { background: var(--info-bg); }
.links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 18px 0 0; font-size: 0.9rem; }
.links:empty { display: none; }
.links a { color: var(--muted); }
.links a:hover { color: var(--text); }
.apps { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.apps a {
  display: flex; justify-content: space-between;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; font-weight: 650;
  transition: border-color 0.15s;
}
.apps a:hover { border-color: var(--honey); }
footer { font-size: 0.85rem; color: var(--muted); }
footer a { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
