/* Grid/flex display rules below would otherwise defeat the hidden attribute. */
.auth-page [hidden] {
  display: none !important;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 12% 12%, rgba(210, 75, 58, 0.1), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(196, 164, 132, 0.18), transparent 40%),
    linear-gradient(180deg, #f8f5f1, #ece7e1);
}

.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 18px 56px;
}

.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 26px;
  padding: 30px 26px 32px;
  box-shadow: 0 24px 60px rgba(60, 45, 40, 0.14);
}

.auth-seal {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #d24b3a, #a8352a);
  color: #fff;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-card h1 {
  margin: 0 0 6px;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
}

.auth-lead {
  margin: 0 0 22px;
  text-align: center;
  color: #6b6b6b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  background: #f2ece7;
  border-radius: 999px;
}

.auth-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 8px;
  background: transparent;
  color: #6b6b6b;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.auth-tab[aria-selected="true"] {
  background: #fff;
  color: #d24b3a;
  box-shadow: 0 6px 16px rgba(60, 45, 40, 0.1);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: #4a4340;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-pending {
  text-align: center;
  padding: 8px 4px 0;
}

.pending-icon {
  margin: 0 0 10px;
  font-size: 2rem;
  text-align: center;
  color: #d24b3a;
}

.auth-pending p {
  margin: 0 0 6px;
  color: #4a4340;
  line-height: 1.5;
  font-size: 0.92rem;
}

.auth-form input {
  width: 100%;
  border: 1px solid #e2dad2;
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  background: #fdfbf9;
  color: #2f2b29;
}

.auth-form input:focus {
  outline: none;
  border-color: #d24b3a;
  box-shadow: 0 0 0 3px rgba(210, 75, 58, 0.12);
}

.auth-hint {
  margin: -4px 0 0;
  color: #8a8279;
  font-size: 0.78rem;
}

.auth-form-links {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-form-links a {
  color: #d24b3a;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #9a9089;
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e8e0d8;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #e2dad2;
  border-radius: 999px;
  padding: 12px;
  background: #fff;
  color: #3c2d28;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.google-btn:hover {
  border-color: #d24b3a;
}

.auth-submit {
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 13px;
  background: #d24b3a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.auth-message {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-message.error {
  background: #fdecea;
  color: #a8352a;
}

.auth-message.success {
  background: #edf6ee;
  color: #2f6b3f;
}

.auth-account {
  display: grid;
  gap: 12px;
  text-align: center;
}

.auth-account .who {
  font-weight: 700;
  font-size: 1.05rem;
}

.auth-account .email {
  color: #6b6b6b;
  font-size: 0.9rem;
}

.auth-actions {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.auth-actions .ghost-btn {
  text-align: center;
}

.link-btn {
  border: 0;
  background: none;
  color: #d24b3a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}
