/* Shared by the main site and the legacy forms. */
.auth-notice-visible > :is(.eyebrow, h2, p) { display: none; }
.auth-notice {
  --notice-accent: #e0b148;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 18px 0 6px;
  text-align: center;
  color: #eee8dc;
  animation: notice-appear 350ms ease-out both;
}
.auth-notice--success { --notice-accent: #75e2ad; }
.auth-notice__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  margin-bottom: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--notice-accent);
  background: radial-gradient(circle, rgba(224, 177, 72, .12), transparent 75%);
  box-shadow: 0 0 0 8px rgba(224, 177, 72, .04);
}
.auth-notice--success .auth-notice__icon {
  background: radial-gradient(circle, rgba(117, 226, 173, .17), transparent 75%);
  box-shadow: 0 0 0 8px rgba(117, 226, 173, .04), 0 12px 40px rgba(0, 0, 0, .2);
}
.auth-notice__icon svg { width: 58px; height: 58px; }
.auth-notice__check {
  stroke-dasharray: 40;
  stroke-dashoffset: 0;
  animation: notice-check 550ms 100ms ease-out both;
}
.auth-notice .auth-notice__eyebrow {
  color: var(--notice-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.5;
}
.auth-notice .auth-notice__title {
  margin: 12px 0 20px;
  color: #fff3dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.auth-notice__title:focus { outline: none; }
.auth-notice p { margin: 0; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.auth-notice .auth-notice__message { color: #bec9d5; }
.auth-notice .auth-notice__requirement { margin-top: 16px; color: #eee8dc; font-weight: 600; }
.auth-notice .auth-notice__hint {
  width: 100%;
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #a4b2c2;
  font-size: 12px;
}
.auth-notice .auth-notice__action {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid rgba(224, 177, 72, .7);
  border-radius: 9px;
  color: #f9dfa6;
  background: rgba(224, 177, 72, .1);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  cursor: pointer;
}
.auth-notice__action:hover { background: rgba(224, 177, 72, .2); }
.auth-notice__action:focus-visible { outline: 2px solid #e0b148; outline-offset: 4px; }
@keyframes notice-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes notice-check { from { stroke-dashoffset: 40; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .auth-notice, .auth-notice__check { animation: none; }
}

/* Email links use the same card from the first paint through verification. */
.verification-shell { max-width: 520px; }
.verification-card {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line-gold);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(13, 27, 42, .96), rgba(6, 14, 23, .98));
  box-shadow: var(--shadow);
}
.verification-card .auth-notice { animation: none; }
.verification-card .auth-notice__action { display: block; margin-top: 26px; text-decoration: none; }
.auth-notice--error { --notice-accent: #ff9393; }
.auth-notice--error .auth-notice__icon { background: rgba(255, 114, 114, .08); box-shadow: 0 0 0 8px rgba(255, 114, 114, .03); }
.verification-spinner { animation: verification-spin 1s linear infinite; }
@keyframes verification-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .verification-spinner { animation: none; } }

.auth-notice .auth-notice__resend { margin-bottom: 12px; }
.auth-notice__resend:disabled { opacity: .5; cursor: default; }

/* Reset links share the verification card, including success and expired-link states. */
.password-reset-card .password-reset-intro { padding-top: 0; margin-bottom: 8px; }
.password-reset-intro .auth-notice__icon { width: 68px; height: 68px; margin-bottom: 18px; }
.password-reset-intro .auth-notice__icon svg { width: 42px; height: 42px; }
.password-reset-intro .auth-notice__title { margin-bottom: 12px; }
.password-reset-card input[readonly] { color: #a4b2c2; background: rgba(2, 8, 14, .35); }
.password-reset-card .password-reset-back { align-self: center; padding: 6px; color: var(--gold-light); font-size: 13px; }
.password-reset-back:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
