.auth-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  background: #fff;
}

/* ── Top bar ── */

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #000;
  padding-bottom: 16px;
  margin-bottom: 40px;
}

/* ── Back link ── */

.back {
  display: inline-block;
  text-decoration: none;
  color: #000;
  border: none;
  border-bottom: 1px solid #000;
  border-radius: 0;
  padding: 0 0 2px;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.back:hover {
  color: #999;
  border-bottom-color: #999;
}

/* ── Panel ── */

.auth-panel {
  margin-top: 0;
  border: none;
  border-radius: 0;
  padding: 0;
  background: #fff;
}

.auth-panel h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #000;
  line-height: 1.1;
  font-family: "DM Sans", sans-serif;
}

.auth-lead {
  margin: 8px 0 0;
  color: #444;
  font-size: 13px;
  line-height: 1.7;
  font-family: "DM Sans", sans-serif;
}

/* ── Tab bar ── */

.auth-tabs {
  margin-top: 32px;
  display: flex;
  align-items: flex-end;
  gap: 0;
  border-bottom: 1px solid #000;
  background: #fff;
  padding: 0;
  width: 100%;
}

.auth-tab {
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  padding: 10px 24px;
  font-size: 10px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1;
  white-space: nowrap;
}

.auth-tab:hover { color: #000; }

.auth-tab.is-active {
  background: #000;
  color: #fff;
}

/* ── Form ── */

.auth-form {
  margin-top: 32px;
  display: grid;
  gap: 24px;
  max-width: 100%;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: "DM Sans", sans-serif;
}

.auth-form input {
  border: none;
  border-bottom: 1.5px solid #000;
  border-radius: 0;
  padding: 10px 0;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  color: #000;
  background: transparent;
  outline: none;
  transition: border-color 0.15s ease;
}

.auth-form input::placeholder {
  color: #bbb;
  font-size: 13px;
}

.auth-form input:focus {
  border-color: #ccff00;
  box-shadow: 0 2px 0 0 rgba(204, 255, 0, 0.3);
}

.auth-btn {
  border: none;
  border-radius: 0;
  padding: 14px 0;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #000;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 8px;
  width: 100%;
}

.auth-btn:hover {
  background: #ccff00;
  color: #000;
}

/* ── Status ── */

.auth-status {
  margin: 16px 0 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-family: "DM Sans", sans-serif;
  color: #999;
  min-height: 1em;
}

.auth-status.is-success { color: #000; }

.auth-status.is-error {
  color: #000;
  text-decoration: underline;
}

.auth-forgot {
  margin-top: 12px;
  font-size: 11px;
  color: #999;
}

.auth-forgot a {
  color: #999;
  text-decoration: underline;
  cursor: pointer;
}

.auth-forgot a:hover { color: #000; }

/* ── Logged-in fallback state ── */

.auth-account {
  margin-top: 48px;
  border: none;
  border-radius: 0;
  padding: 0;
  background: #fff;
}

.auth-already-eyebrow {
  margin: 0 0 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #999;
}

.auth-already-email {
  margin: 0 0 32px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000;
}

.auth-already-actions {
  display: flex;
  gap: 12px;
}

.auth-already-profile-btn {
  border: none;
  border-radius: 0;
  padding: 12px 24px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
}

.auth-already-profile-btn:hover {
  background: #ccff00;
  color: #000;
}

.auth-already-logout-btn {
  border: 1.5px solid #000;
  border-radius: 0;
  padding: 12px 24px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.auth-already-logout-btn:hover {
  background: #000;
  color: #fff;
}

/* ── Unused legacy classes (kept for safety) ── */

.auth-link-btn {
  border: 1.5px solid #000;
  border-radius: 0;
  padding: 10px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #000;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.auth-link-btn:hover { background: #000; color: #fff; }

[hidden] { display: none !important; }

@media (max-width: 640px) {
  .auth-page { padding: 32px 20px 60px; }

  .auth-panel h1 { font-size: 22px; }

  .auth-already-actions { flex-direction: column; }

  .auth-already-profile-btn,
  .auth-already-logout-btn { width: 100%; text-align: center; }
}
