.auth-body {
  min-height: 100%;
}

.auth-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.auth-card {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px var(--shadow);
  padding: 1.2rem 1.2rem 1rem;
}

.auth-card h1 {
  margin: 0;
  font-size: 1.4rem;
}

.auth-sub {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.auth-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.auth-tabs button {
  border: 1px solid var(--line);
  background: #f2eee7;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.auth-form {
  display: none;
}

.auth-form.is-active {
  display: block;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.auth-field > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  padding: 0.58rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-family: inherit;
}

.auth-field input:focus {
  outline: 2px solid rgba(196, 92, 62, 0.3);
  border-color: var(--accent-soft);
}

.auth-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

.auth-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3efe8;
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-btn--primary {
  width: 100%;
  margin-top: 0.2rem;
  border: none;
  background: #c8cfc8;
  box-shadow: 0 2px 0 #a8b0a8;
}

.auth-btn:hover {
  filter: brightness(1.04);
}

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

.auth-msg {
  margin: 0.85rem 0 0;
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 600;
}

.auth-msg[hidden] {
  display: none !important;
}
