:root {
  color-scheme: dark;
  --background: #0d0d0f;
  --surface: #18181c;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f2ec;
  --muted: #aaa6a0;
  --accent: #e8ff65;
  --error: #ff7890;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(232, 255, 101, 0.1), transparent 28rem),
    var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.auth-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.auth-card {
  width: min(460px, 100%);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(24, 24, 28, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
}

.auth-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #12130b;
  font-size: 13px;
}

.eyebrow {
  margin: 38px 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(34px, 9vw, 52px); letter-spacing: -0.055em; line-height: 0.95; }
.intro { margin: 18px 0 30px; color: var(--muted); line-height: 1.55; }
form { display: grid; gap: 10px; }
label { margin-top: 10px; font-size: 13px; font-weight: 680; }

input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #101013;
  color: var(--text);
}

input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 255, 101, 0.13); }

button {
  min-height: 52px;
  margin-top: 18px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #12130b;
  font-weight: 780;
  cursor: pointer;
}

button:disabled { cursor: wait; opacity: 0.62; }
.form-message { margin: 8px 0 0; font-size: 13px; line-height: 1.45; }
.error { color: var(--error); }
.success { color: var(--accent); }

.secondary-link {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.secondary-link:hover { color: var(--text); }

.password-strength { margin: 8px 0 2px; padding: 13px; border-radius: 12px; background: #101013; }
.strength-heading { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.strength-heading span { color: var(--muted); }
.strength-meter { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 5px; background: #29292f; }
.strength-meter span { display: block; width: 0; height: 100%; background: var(--error); transition: width 160ms ease, background 160ms ease; }
.password-strength p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

@media (max-width: 540px) {
  .auth-shell { padding: 0; place-items: stretch; }
  .auth-card { min-height: 100vh; padding: 28px 20px; border: 0; border-radius: 0; }
}
