:root {
  --bg: #0c1118;
  --text: #e8eef6;
  --dim: #8fa3b8;
  --mute: #5c7086;
  --accent: #3dffa8;
  --ai: #6ec8ff;
  --danger: #ff6b6b;
  --border: #243041;
  --font: "Sora", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

a {
  color: var(--ai);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(700px 360px at 20% 0%, rgba(61, 255, 168, 0.1), transparent 55%),
    radial-gradient(600px 300px at 90% 10%, rgba(110, 200, 255, 0.08), transparent 50%),
    var(--bg);
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.auth__mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: url("/static/img/logo.png") center / contain no-repeat;
  flex-shrink: 0;
}

.auth-card {
  width: min(400px, 100%);
  padding: 28px 26px;
  border-radius: 16px;
  border: 1px solid rgba(148, 174, 204, 0.14);
  background: rgba(17, 24, 33, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card h1 {
  font-size: 24px;
  font-weight: 700;
}

.auth-card__sub {
  color: var(--dim);
  font-size: 13px;
  line-height: 1.55;
  margin-top: -6px;
  margin-bottom: 4px;
}

.auth-card__note {
  color: var(--mute);
  font-size: 12px;
  line-height: 1.55;
  margin-top: -4px;
  margin-bottom: 4px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field span {
  font-size: 12px;
  color: var(--dim);
  font-weight: 500;
}

.auth-field small {
  font-size: 11px;
  color: var(--mute);
}

.auth-field input {
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0c1118;
  color: var(--text);
  font: inherit;
  outline: none;
}

.auth-field input:focus {
  border-color: rgba(61, 255, 168, 0.45);
  box-shadow: 0 0 0 3px rgba(61, 255, 168, 0.1);
}

.auth-error {
  color: var(--danger);
  font-size: 13px;
  background: rgba(255, 107, 107, 0.1);
  padding: 8px 10px;
  border-radius: 8px;
}

.auth-error[hidden] {
  display: none !important;
}

.auth-btn {
  margin-top: 4px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #0c1118;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--mute);
}
