:root {
  color-scheme: light;
  --ink: #1c1b20;
  --muted: #5f5a6b;
  --accent: #1f2937;
  --accent-strong: #0f172a;
  --surface: #ffffff;
  --border: rgba(28, 27, 32, 0.12);
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: #f7f7f9;
  padding: 32px 20px;
  overflow-x: hidden;
}

.screen {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-screen {
  width: 100%;
}

.card {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  gap: 24px;
  z-index: 1;
}

.card__header {
  text-align: center;
  display: grid;
  gap: 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--accent-strong);
  margin: 0;
}

h1 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  border-radius: 14px;
  padding: 6px;
  gap: 6px;
}

.tab {
  border: none;
  background: transparent;
  font-family: "Plus Jakarta Sans", sans-serif;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.tab--active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(28, 27, 32, 0.08);
}

.tab:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.form {
  display: grid;
  gap: 18px;
}

.is-hidden {
  display: none;
}

.dashboard {
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 40px 32px;
  text-align: center;
  display: grid;
  gap: 12px;
}

.dashboard h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Trebuchet MS", sans-serif;
  font-size: 2rem;
}

.dashboard p {
  margin: 0;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
}

.field--password {
  position: relative;
}

.field--password input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 38px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle.is-active {
  color: var(--ink);
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: border 200ms ease, box-shadow 200ms ease;
}

input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.dev-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}

.dev-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.field__error {
  margin: 0;
  min-height: 18px;
  font-size: 0.85rem;
  color: #a16257;
}

.primary {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: #fffaf5;
  background: #1f2937;
  cursor: pointer;
  transition: background 200ms ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.primary:hover {
  background: #111827;
}

.form__message {
  margin: 0;
  min-height: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-strong);
}

.form__message.is-error {
  color: #a16257;
}

.form__message.is-success {
  color: #0f7c4a;
}

@media (max-width: 480px) {
  .card {
    padding: 26px 22px;
  }

  .tabs {
    grid-template-columns: 1fr;
  }
}
