/* Auth pages (layouts/base-auth.html): a centred card on the page ground with a soft
   accent glow. Everything reads the --app-* tokens from theme.css, so the page follows
   data-bs-theme (signed-in) or the OS preference (anonymous). */

.auth-body {
  min-height: 100vh;
  margin: 0;
  color: var(--app-text);
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(37, 99, 235, .2), transparent 70%) no-repeat,
    var(--app-bg);
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 14px;
  box-shadow: var(--app-shadow);
}

/* Brand row: accent square mark + product name */
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--app-text);
  text-decoration: none;
}

.auth-brand:hover { color: var(--app-text); }

.auth-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--app-accent);
  color: var(--bs-white);
  font-size: 16px;
}

.auth-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.auth-subtitle { margin: 0 0 24px; color: var(--app-text-muted); }

.auth-card .form-label { margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.auth-card .alert { font-size: 13px; text-align: left; }
.auth-form .form-text { color: var(--app-text-muted); }
.auth-form .form-text ul { margin: 4px 0 0; padding-left: 18px; }
.auth-form .form-control[aria-invalid="true"] { border-color: var(--bs-form-invalid-border-color); }
.auth-form .btn-primary, .auth-social .btn { min-height: 40px; }

/* Inputs a third-party form renders without Bootstrap classes get the same look. */
.auth-form :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], .form-control, .form-select, .form-check-input) {
  display: block;
  width: 100%;
  padding: .5rem .75rem;
  font: inherit;
  color: var(--app-text);
  background: var(--app-input-bg);
  border: 1px solid var(--app-border);
  border-radius: 8px;
}

.auth-form :is(input, select, textarea):focus-visible {
  outline: none;
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .25);
}

/* "or" line between the form and the social buttons */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--app-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--app-border); }

.auth-social { display: flex; flex-direction: column; gap: 10px; }
.auth-social .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.auth-social .btn i { font-size: 16px; }

/* Muted footer links and secondary actions */
.auth-footer { margin: 24px 0 0; text-align: center; color: var(--app-text-muted); font-size: 13px; }
.auth-footer a { color: var(--app-link); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-footer .btn-link { padding: 0; font-size: inherit; vertical-align: baseline; }

/* Icon in a soft circle for the status cards; large code for the error pages */
.auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--app-accent-soft);
  color: var(--app-accent-text);
  font-size: 22px;
}

.auth-icon--warning { background: var(--app-warning-soft); color: var(--app-warning-text); }
.auth-icon--success { background: var(--app-success-soft); color: var(--app-success-text); }

.auth-error-code {
  margin: 0 0 4px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--app-accent-text);
}

@media (max-width: 480px) {
  .auth-page { align-items: flex-start; padding: 16px; }
  .auth-card { padding: 24px 20px; }
}
