:root {
  --bg: #0b0d0c;
  --surface: #17191a;
  --border: #2c312e;
  --text: #f2f3f1;
  --muted: #9aa09c;
  --accent: #4ade9b;
  --danger: #ff8a8a;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  min-height: 100dvh;
  max-width: 420px;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.brand img {
  border-radius: 20px;
}
.brand h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand h1 span {
  color: var(--accent);
}
.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
input[type='password'] {
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 17px;
}
input[aria-invalid='true'] {
  border-color: var(--danger);
}
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button {
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
}
.error {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}
.hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
