.flash-messages {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: grid;
  gap: 8px;
  width: min(420px, calc(100vw - 32px));
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.flash-messages--hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(-8px);
  pointer-events: none;
}

.flash {
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}

.flash-notice {
  background: #eef8f2;
  color: #1f5a38;
}

.flash-alert {
  background: #fdeeee;
  color: #7a2b2b;
}

.landing-nav-auth-link {
  color: #fff;
  text-decoration: none;
  text-transform: lowercase;
  font-size: clamp(14px, 1.35vw, 20px);
  font-weight: 500;
}

.landing-top--shared .landing-nav-auth-link {
  color: #fff;
}

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  width: 100%;
  padding: 24px 20px;
  background: linear-gradient(180deg, #fff 0%, #faf6f4 100%);
}

.auth-card {
  width: min(100%, 420px);
  padding: 32px 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgb(108 49 46 / 0.08);
}

.auth-card-title {
  margin: 0 0 22px;
  font-size: 28px;
  line-height: 1.1;
  color: var(--landing-dark);
  font-weight: 500;
}

.auth-lead {
  margin: 0 0 20px;
  color: #666;
  line-height: 1.5;
}

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

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--landing-dark);
}

.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"],
.auth-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  color: #333;
  background: #fff;
}

.auth-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.auth-field input:focus,
.auth-field select:focus {
  outline: 2px solid rgb(203 98 70 / 0.35);
  border-color: var(--landing-accent);
}

.auth-code-input {
  letter-spacing: 0.35em;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.auth-field--checkbox {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.auth-field--checkbox label {
  margin: 0;
}

.auth-hint {
  font-size: 13px;
  color: #777;
}

.auth-actions {
  margin-top: 4px;
}

.auth-button {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--landing-accent);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.auth-button:hover {
  opacity: 0.9;
}

.auth-button:disabled,
.auth-button:disabled:hover {
  background: #b8a9a7;
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 20px 0 4px;
  color: #999;
  font-size: 13px;
}

.auth-divider--after {
  margin: 4px 0 20px;
}

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

.auth-google-form {
  margin: 0;
}

.auth-button--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
}

.auth-button--google:hover {
  opacity: 1;
  background: #f8f9fa;
}

.auth-google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.auth-links a {
  color: var(--landing-accent);
  text-decoration: none;
  font-size: 14px;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links--stacked {
  flex-direction: column;
  align-items: stretch;
}

.auth-button--danger {
  background: var(--landing-dark);
}

.auth-errors {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fdeeee;
  color: #7a2b2b;
}

.auth-errors-title {
  margin: 0 0 8px;
  font-weight: 500;
}

.auth-errors ul {
  margin: 0;
  padding-left: 18px;
}

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

  .auth-card {
    padding: 28px 22px;
  }

  .auth-card-title {
    font-size: 24px;
  }
}
