/* Branded Firebase Auth action pages (password reset) — matches app + marketing site */
.auth-action-page {
  min-height: 100vh;
  background: var(--bg-deep);
  font-family: var(--font);
  color: var(--text);
}

.auth-action-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--gradient-hero-mesh);
}

.auth-action-wrap {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.auth-action-card {
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-action-header {
  padding: 24px 22px 20px;
  text-align: left;
  background: linear-gradient(135deg, #1a3050 0%, #102018 50%, #0e121c 100%);
  border-bottom: 1px solid var(--glass-border);
}

.auth-action-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(46, 230, 166, 0.12);
  border: 1px solid rgba(46, 230, 166, 0.35);
  margin-bottom: 14px;
}

.auth-action-header h1 {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.auth-action-header p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-action-body {
  padding: 22px;
}

.auth-action-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 22px;
}

.auth-action-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.auth-action-step.is-active {
  color: var(--text);
}

.auth-action-step-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--glass-border);
  font-size: 1rem;
}

.auth-action-step.is-active .auth-action-step-icon {
  border-color: rgba(46, 230, 166, 0.5);
  color: var(--accent);
}

.auth-action-step-line {
  flex: 1;
  height: 1.5px;
  margin-top: 20px;
  background: var(--glass-border);
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  margin: 0 0 7px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.96875rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.15);
}

.auth-field input::placeholder {
  color: rgba(167, 176, 194, 0.55);
}

.auth-email-pill {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: rgba(61, 139, 253, 0.12);
  border: 1px solid rgba(61, 139, 253, 0.28);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  word-break: break-all;
}

.auth-error {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 92, 122, 0.1);
  border: 1px solid rgba(255, 92, 122, 0.35);
  color: #ff8da0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.auth-error.is-visible {
  display: block;
}

.auth-hint {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.auth-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 0.96875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.auth-actions .btn:hover {
  text-decoration: none;
}

.auth-actions .btn:active {
  transform: scale(0.98);
}

.auth-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-actions .btn-primary {
  color: #041018;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  box-shadow: 0 10px 28px rgba(46, 230, 166, 0.22);
}

.auth-actions .btn-primary:hover {
  box-shadow: 0 12px 32px rgba(46, 230, 166, 0.3);
}

.auth-actions .btn-ghost {
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--glass-border);
}

.auth-actions .btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(46, 230, 166, 0.35);
}

.auth-success-icon {
  width: 88px;
  height: 88px;
  margin: 8px auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2rem;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(46, 230, 166, 0.22), rgba(61, 139, 253, 0.18));
  border: 1.5px solid rgba(46, 230, 166, 0.45);
  box-shadow: 0 0 28px rgba(46, 230, 166, 0.22);
  animation: auth-pulse 1.6s ease-in-out infinite alternate;
}

@keyframes auth-pulse {
  from { transform: scale(0.96); }
  to { transform: scale(1); }
}

.auth-tip-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.auth-tip-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(22, 28, 42, 0.85);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.auth-tip-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.auth-footer-links {
  margin-top: 18px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer-links a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

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

.auth-loading {
  padding: 40px 22px;
  text-align: center;
  color: var(--text-muted);
}

.auth-spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 2.5px solid rgba(46, 230, 166, 0.2);
  border-top-color: var(--accent);
  animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

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

/* Public action forms (unsubscribe / delete-data) */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.auth-label {
  display: block;
  margin: 10px 0 7px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.96875rem;
  outline: none;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.15);
}

.auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-check input {
  margin-top: 3px;
}

.auth-submit {
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #041018;
  font-weight: 700;
  font-size: 0.96875rem;
  cursor: pointer;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-steps {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.auth-steps li {
  margin-bottom: 8px;
}
