/*
  Minimal styles for the ASP.NET Core Identity pages (static SSR) that still use the template's
  Bootstrap class names. Replaced once the account pages are redesigned and localized.
*/

.row { display: flex; flex-direction: column; gap: var(--space-5); }
.col-lg-3, .col-lg-4, .col-lg-6, .col-lg-9, .col-md-4, .col-md-6, .col-xl-6 { width: 100%; }

/* Only unclassed elements: the Identity templates use them, the app's own components never do. */
main h1:not([class]) { font-size: 2rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; margin-bottom: var(--space-4); }
main h2:not([class]) { font-size: 1.1rem; font-weight: 650; margin-bottom: var(--space-3); }
main h3:not([class]) { font-size: 1rem; font-weight: 650; margin: var(--space-4) 0 var(--space-2); }
main hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-4) 0; }
main section:not([class]), main form:not([class]) { display: flex; flex-direction: column; }

.mb-3 { margin-bottom: var(--space-4); }
.w-100 { width: 100%; }

.form-floating { display: flex; flex-direction: column-reverse; gap: var(--space-1); }
.form-floating > label, .form-label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }

.form-control {
  width: 100%;
  min-height: var(--tap);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text);
}
.form-control::placeholder { color: transparent; }
.form-control:focus { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); border-color: var(--focus); }

.checkbox label, .form-check { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap); }
.form-check-input { width: 20px; height: 20px; accent-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 0 var(--space-5);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); border-color: transparent; }
.btn:focus-visible { outline-offset: 3px; }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-link { border: 0; background: none; padding: 0; color: var(--accent); min-height: auto; }
.btn-lg { min-height: 52px; }

.text-danger, .validation-message { color: var(--danger); font-size: .9rem; }
.validation-summary-errors ul, ul.text-danger { margin: 0; padding-left: var(--space-4); }

.alert {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-m);
  background: var(--surface-2);
}
.alert-danger { color: var(--danger); }
.alert-success { color: var(--text); }

/* Plain text links of the Identity pages only; app components style their own links. */
main p > a:not([class]), main form a:not([class]) { color: var(--accent); }

.nav.nav-pills { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.nav-pills .nav-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 var(--space-4);
  border-radius: 999px;
  background: var(--surface-2);
  text-decoration: none;
  font-size: .9rem;
}
.nav-pills .nav-link.active { background: var(--accent); color: var(--accent-contrast); }
