:root {
  color-scheme: light;
  --color-jet-black: #292f36;
  --color-strong-cyan: #4ecdc4;
  --color-mint-cream: #f7fff7;
  --color-grapefruit-pink: #ff6b6b;
  --color-royal-gold: #ffe66d;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --background-default: var(--color-mint-cream);
  --background-elevated: #ffffff;
  --background-muted: rgba(41, 47, 54, 0.06);
  --text-primary: var(--color-jet-black);
  --text-secondary: rgba(41, 47, 54, 0.72);
  --text-muted: rgba(41, 47, 54, 0.52);
  --action-primary: var(--color-strong-cyan);
  --action-primary-hover: #2fb6ad;
  --state-danger: var(--color-grapefruit-pink);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background-default);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.auth-card {
  width: min(100%, 460px);
  background: var(--background-elevated);
  border: 1px solid color-mix(in srgb, var(--text-primary) 12%, white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(41, 47, 54, 0.12);
}

h1 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
}

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-button {
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 16%, white);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  cursor: pointer;
}

.mode-button.active {
  border-color: var(--action-primary);
  background: var(--action-primary);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.field input {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--text-primary) 16%, white);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font: inherit;
  color: var(--text-primary);
  background: #fff;
}

.field input:focus {
  outline: 2px solid color-mix(in srgb, var(--action-primary) 45%, white);
  outline-offset: 1px;
}

.submit-button {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 1px solid var(--action-primary);
  border-radius: var(--radius-pill);
  background: var(--action-primary);
  color: var(--text-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mode-copy {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.mode-copy a {
  color: #1c7f78;
  font-weight: 600;
}

.status-message {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.status-message.error {
  color: var(--state-danger);
}

.status-message.success {
  color: #1f7a6b;
}
