/* ── Authentication page styles ── */

/* ── Rules ── */

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0, #211c0f 0, transparent 36%), var(--bg);
}

.auth-navigation {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.auth-brand img {
  width: 30px;
  height: 30px;
}

.auth-shell {
  width: min(420px, calc(100% - 32px));
  margin: 25px auto 70px;
}

.auth-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #111;
  box-shadow: 0 28px 80px #0008;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 42px;
  text-align: center;
}

.auth-introduction {
  margin: 0 0 26px;
  color: var(--muted);
  text-align: center;
}

.auth-password-toggle {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.auth-password-toggle:hover {
  color: var(--text);
  background: #1b1b1b;
}

.auth-password-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.auth-password-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.auth-password-icon--hide {
  display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-icon--show {
  display: none;
}

.auth-password-toggle[aria-pressed="true"] .auth-password-icon--hide {
  display: block;
}

.auth-submit {
  width: 100%;
  min-height: 47px;
  margin-top: 5px;
}

.auth-recovery-button {
  display: block;
  margin: 15px auto 0;
  color: var(--accent);
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.auth-google-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #202124;
  font-weight: 600;
  background: #fff;
  border-color: #fff;
}

.auth-google-button svg {
  width: 18px;
  height: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 8px;
  background: #090909;
}

.auth-tab {
  padding: 10px;
  color: var(--muted);
  font: 600 14px Inter;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.auth-tab[aria-selected="true"] {
  color: var(--text);
  background: #202020;
}

.auth-panel {
  padding-top: 25px;
}

.auth-panel[hidden] {
  display: none;
}

.auth-field {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
}

.auth-input {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  color: var(--text);
  font: 16px Inter;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #0b0b0b;
  outline: none;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #c9a84c18;
}

.auth-password-input {
  padding-right: 48px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
}

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

.auth-switch {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.auth-switch button {
  color: var(--accent);
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.auth-consent {
  margin-top: 12px;
  font-size: 12px;
  color: #6b6b6b;
  text-align: center;
}

.auth-deletion-notice {
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #6aaa6a;
  text-align: center;
  background: #1a2a1a;
  border: 1px solid #3a6a3a;
  border-radius: 6px;
}

.auth-password {
  position: relative;
  display: block;
}
