/* Sign in, sign up and password screens: one centred card on a soft brand
   wash, built from the shared form components in application.css. */

.auth-container {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 1 0 auto;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 8vh, 80px) 16px 48px;
}

.auth-container::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 420px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 60% at 25% 0%, rgba(15, 181, 166, 0.16) 0%, rgba(15, 181, 166, 0) 70%),
    radial-gradient(40% 60% at 75% 0%, rgba(91, 108, 240, 0.16) 0%, rgba(91, 108, 240, 0) 72%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.auth-logo {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
}

.auth-title {
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
}

.auth-subtitle {
  margin-bottom: 28px;
  color: var(--body);
  font-size: 0.95rem;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-form .btn-primary {
  width: 100%;
  margin-top: 6px;
  padding: 12px 18px;
  font-size: 0.97rem;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-label-row a {
  color: var(--teal-ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

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

.auth-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.auth-footer a {
  color: var(--teal-ink);
  font-weight: 600;
  text-decoration: none;
}

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

.profile-card {
  max-width: 560px;
}

.profile-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.profile-section h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.profile-section p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-label {
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.45;
}

.consent-label input {
  flex: none;
  margin-top: 3px;
}

.mood-tracking-points {
  margin: 0 0 20px 1.1em;
  color: var(--body);
  line-height: 1.55;
}

.mood-tracking-points li + li {
  margin-top: 8px;
}

.reminder-settings {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.reminder-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.reminder-hour {
  width: auto;
  padding-block: 6px;
}

.profile-note {
  color: var(--amber);
}

.reminder-channels {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: none;
}

.reminder-channels legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--ink);
  font-weight: 600;
}

.notification-settings {
  margin-top: 20px;
}

.profile-section .push-status:empty {
  display: none;
}

.profile-section .push-tip {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Button classes set display, which would override the hidden attribute. */
.profile-actions [hidden] {
  display: none;
}
