:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --line: #292929;
  --muted: #929292;
  --text: #f5f5f5;
  --accent: #7c5cff;
  --accent-strong: #6847ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  align-items: center;
  background:
    radial-gradient(circle at 50% -10%, rgba(124, 92, 255, 0.18), transparent 35%), var(--bg);
  color: var(--text);
  display: flex;
  font-family:
    Geist,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.auth-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  padding: 28px 18px;
  width: 100%;
}

.auth-card {
  background: rgba(16, 16, 16, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  max-width: 430px;
  padding: 30px;
  width: 100%;
}

.auth-brand {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  font-size: 14px;
  font-weight: 650;
  gap: 10px;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-symbol {
  display: inline-flex;
  height: 24px;
  width: 24px;
}

.brand-symbol svg {
  fill: none;
  height: 24px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  width: 24px;
}

.auth-heading {
  margin: 38px 0 24px;
}

.eyebrow {
  color: var(--accent);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(26px, 5vw, 32px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 10px 0 9px;
}

.auth-heading p,
.form-description,
.auth-footnote {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.auth-tabs {
  background: #090909;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 18px;
  padding: 3px;
}

.auth-tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  min-height: 35px;
}

.auth-tab.is-active {
  background: #202020;
  color: var(--text);
}

.auth-message {
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 8px;
  color: #d9d1ff;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 16px;
  padding: 10px 12px;
}

.auth-message.is-error {
  background: rgba(255, 89, 89, 0.1);
  border-color: rgba(255, 89, 89, 0.35);
  color: #ffb6b6;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field > span {
  color: #d7d7d7;
  font-size: 12px;
  font-weight: 600;
}

.auth-field input {
  background: #080808;
  border: 1px solid #303030;
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  outline: none;
  padding: 0 12px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  width: 100%;
}

.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.auth-field small {
  color: var(--muted);
  font-size: 11px;
}

.form-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.remember-option {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  gap: 7px;
}

.remember-option input {
  accent-color: var(--accent);
}

.text-button {
  background: transparent;
  border: 0;
  color: #b9adff;
  font-size: 11px;
  padding: 0;
}

.text-button:hover {
  color: #fff;
}

.primary-button,
.google-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 650;
  justify-content: center;
  min-height: 43px;
  padding: 0 14px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
  width: 100%;
}

.primary-button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.auth-divider {
  align-items: center;
  color: #666;
  display: flex;
  font-size: 11px;
  gap: 10px;
  margin: 22px 0 14px;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--line);
  content: '';
  flex: 1;
  height: 1px;
}

.google-button {
  background: #f3f3f3;
  border: 1px solid #f3f3f3;
  color: #151515;
  gap: 9px;
}

.google-button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.google-mark {
  color: #4285f4;
  font-size: 16px;
  font-weight: 800;
}

.back-button {
  justify-self: center;
  margin-top: 2px;
}

.auth-footnote {
  font-size: 11px;
  margin-top: 22px;
  text-align: center;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 24px 20px;
  }
}
