:root {
  color-scheme: dark;
  --bg: #14171a;
  --line: #2b3137;
  --text: #eceae4;
  --muted: #98a0a8;
  --accent: #e8b04a;
  --error: #ff8f7a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 28px) 20px calc(env(safe-area-inset-bottom) + 24px);
}

h1 { margin: 0; font-size: 30px; font-weight: 650; letter-spacing: -0.02em; }

header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

#login h1 { margin-bottom: 32px; }
label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 15px; }

/* 16px и больше: иначе iPhone приближает страницу при фокусе на поле. */
input[type="password"] {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 17px;
}
input[type="password"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

button { font: inherit; cursor: pointer; }
button[type="submit"] {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #1b1508;
  font-weight: 600;
}
button:disabled { opacity: 0.6; }

.quiet {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
}

.error { min-height: 1.45em; margin: 12px 0 0; color: var(--error); font-size: 15px; }

.sections { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sections li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.sections strong { display: block; font-weight: 600; }
.sections span { color: var(--muted); font-size: 15px; }

footer { margin-top: 24px; color: var(--muted); font-size: 13px; }
