:root {
  --ink: #0f0f0f;
  --ink2: #525252;
  --ink3: #a3a3a3;
  --ink4: #d4d4d4;
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface2: #fafafa;
  --border: #e5e5e5;
  --border2: #d4d4d4;
  --accent: #0f0f0f;
  --success: #16a34a;
  --danger: #dc2626;
  --info: #2563eb;
  --r: 8px;
  --r-lg: 14px;
}

html {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(15, 15, 15, 0.04), transparent 24%),
    linear-gradient(180deg, #f8f8f8 0%, #f3f3f3 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.auth-brand-centered {
  width: fit-content;
  margin: 0 auto 22px;
}

.auth-brand-logo {
    display: block;
    width: auto;
    height: 46px;
    object-fit: contain;
}

.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.auth-page-wrap {
  width: min(100%, 1120px);
}

.auth-home {
  display: flex;
  justify-content: center;
}

.auth-home-card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.auth-home-header {
  margin-bottom: 1.5rem;
}

.auth-home-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-home-header p {
  margin: 0.5rem 0 0;
  color: var(--ink2);
}

.auth-google-form {
  margin-bottom: 1.1rem;
}

.auth-google-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-google-btn:hover {
  background: var(--surface2);
  border-color: var(--ink3);
}

.auth-google-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.auth-home-divider {
  position: relative;
  text-align: center;
  margin: 1.05rem 0 1.15rem;
}

.auth-home-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
  transform: translateY(-50%);
}

.auth-home-divider span {
  position: relative;
  display: inline-block;
  padding: 0 0.75rem;
  background: var(--surface);
  color: var(--ink3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-home-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
}

.auth-home-primary,
.auth-home-secondary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-home-manage {
  margin-top: 0.15rem;
  color: var(--ink2);
  font-size: 0.92rem;
  font-weight: 500;
}

.auth-home-manage:hover {
  color: var(--ink);
}

.auth-one-tap-note {
  margin: -0.2rem 0 1rem;
  color: var(--ink3);
  font-size: 0.8rem;
  text-align: center;
}

.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
  max-width: 100%;
  padding: 0;
}

.row {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 1.5rem;
}

h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 600;
}

hr {
  border-color: var(--border);
  opacity: 1;
}

.text-muted,
.text-secondary {
  color: var(--ink3) !important;
}

.text-danger,
.validation-summary-errors,
.field-validation-error {
  color: var(--danger) !important;
  font-size: 12px;
}

.lead {
  color: var(--ink2);
}

.btn {
  border-radius: var(--r);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: none !important;
}

.btn-outline-secondary,
.btn-secondary {
  color: var(--ink2);
  border-color: var(--border2);
  background: var(--surface);
}

.btn-outline-secondary:hover,
.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--ink3);
  background: var(--surface2);
}

.btn-link {
  color: var(--ink2);
}

.form-control,
.form-select {
  border-radius: var(--r);
  border-color: var(--border);
  color: var(--ink);
  padding: 10px 12px;
  min-height: 44px;
  box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ink);
}

.form-floating > label {
  color: var(--ink3);
}

.form-check-input:checked {
  background-color: var(--ink);
  border-color: var(--ink);
}

.form-check-input:focus {
  box-shadow: none;
  border-color: var(--ink3);
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
}

#login-submit {
  margin-bottom: 1.25rem;
}

#forgot-password {
  display: inline-block;
  margin-top: 0.2rem;
}

#login-submit + div {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

#login-submit + div p {
  margin: 0;
}

.card {
  border-radius: var(--r-lg);
  border-color: var(--border);
}

.nav-pills .nav-link,
.nav-tabs .nav-link {
  color: var(--ink2);
  border-radius: var(--r);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: var(--ink);
}

.list-group-item {
  border-color: var(--border);
}

.table {
  --bs-table-color: var(--ink);
  --bs-table-striped-color: var(--ink);
  --bs-table-hover-color: var(--ink);
}

code {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
}

.navbar-nav {
  flex-direction: row;
}

/* Account manage pages */
.account-page {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0 32px;
}

.account-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.account-header {
  text-align: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.account-header::before {
  content: "Account";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0a8d73;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.account-header h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.account-header p {
  margin: 8px auto 0;
  max-width: 480px;
  color: var(--ink2);
  line-height: 1.6;
}

.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface2);
}

.account-link-pill {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 130px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.account-link-pill:hover {
  color: var(--ink);
  background: #fff;
}

.account-link-pill.active {
  color: #fff;
  background: var(--ink);
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-form .form-group {
  margin: 0;
}

.account-form .form-label {
  margin-bottom: 6px;
}

.account-form .form-control {
  border-radius: 12px;
  min-height: 48px;
}

.account-form .form-control:disabled,
.account-form .form-control[readonly] {
  background: #eef1f5;
  color: var(--ink2);
  opacity: 1;
}

.btn-account-primary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 4px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.btn-account-primary:hover {
  background: #232323;
}

.btn-account-primary:active {
  transform: translateY(1px);
}

.account-card .alert {
  margin: 0 0 16px;
  border-radius: 12px;
  font-size: 13px;
}

/* Fallback for the default Identity manage scaffold if it is rendered. */
.auth-page-wrap > h1,
.auth-page-wrap > h1 + h2 {
  text-align: center;
}

.auth-page-wrap > h1 {
  margin: 0 auto 6px;
  font-size: 1.75rem;
}

.auth-page-wrap > h1 + h2 {
  margin: 0 auto 20px;
  color: var(--ink2);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

.auth-page-wrap > hr {
  display: none;
}

.auth-page-wrap > .row {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.auth-page-wrap > .row > .col-md-3,
.auth-page-wrap > .row > .col-md-9 {
  padding: 0;
}

.auth-page-wrap > .row > .col-md-3 {
  flex: 0 0 190px;
  max-width: 190px;
  padding-right: 22px;
}

.auth-page-wrap > .row > .col-md-9 {
  flex: 1 1 0;
  max-width: none;
  padding-left: 22px;
  border-left: 1px solid var(--border);
}

.auth-page-wrap .nav-pills.flex-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface2);
}

.auth-page-wrap .nav-pills.flex-column .nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 700;
}

.auth-page-wrap .nav-pills.flex-column .nav-link.active {
  color: #fff;
  background: var(--ink);
}

.auth-page-wrap > .row h3 {
  margin-bottom: 6px;
  font-size: 1.45rem;
}

.auth-page-wrap > .row h3 + p {
  color: var(--ink2);
}

@media (max-width: 768px) {
  .auth-main {
    align-items: stretch;
    padding: 20px 12px 28px;
  }

  .auth-brand-centered {
    margin-bottom: 18px;
  }

  .auth-brand-logo {
    width: 156px;
  }

  .account-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .account-header {
    text-align: left;
  }

  .account-links {
    flex-direction: column;
  }

  .account-link-pill {
    justify-content: flex-start;
    flex-basis: auto;
  }

  .btn-account-primary {
    width: 100%;
  }

  .auth-page-wrap > h1,
  .auth-page-wrap > h1 + h2 {
    text-align: left;
  }

  .auth-page-wrap > .row {
    padding: 16px;
    border-radius: 18px;
  }

  .auth-page-wrap > .row > .col-md-3,
  .auth-page-wrap > .row > .col-md-9 {
    max-width: 100%;
    flex: 0 0 100%;
    padding: 0;
  }

  .auth-page-wrap > .row > .col-md-9 {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }
}

/* Shared authentication components, including recovery and confirmation states. */

body { font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.auth-page { display:flex; justify-content:center; padding: 1rem 0 2rem; }
.auth-card, .auth-home-card { width:100%; max-width:460px; background:#fff; padding:32px; border:1px solid #dfe7e4; border-radius:20px; box-shadow:0 16px 48px #14392b0a; }
.auth-header { margin-bottom:24px; text-align:center; }
.auth-header h1 { font-size:1.7rem; line-height:1.25; margin:10px 0; }
.auth-header p, .auth-body p { color:#52635e; line-height:1.65; overflow-wrap:anywhere; }
.auth-header .badge { background:#e6f5ee; color:#17664e; border-radius:8px; padding:6px 9px; font-size:11px; letter-spacing:.07em; text-transform:uppercase; }
.auth-card .btn-primary, .primary-link, .logout-btn { background:#12664f; border-color:#12664f; color:white; min-height:46px; border-radius:10px; font-weight:600; }
.auth-card .btn-primary:hover, .primary-link:hover { background:#0c513e; color:white; }
.auth-links, .auth-actions { display:grid; gap:10px; margin-top:22px; font-size:13px; }
.auth-links p { margin:0; }
.auth-links a, .secondary-link { color:#12664f; }
.auth-actions a { padding:12px; text-align:center; border-radius:10px; }
.auth-footer { display:flex; justify-content:center; flex-wrap:wrap; gap:16px; margin-top:24px; color:#52635e; font-size:12px; }
.auth-footer a:hover, .auth-links a:hover { text-decoration:underline; }
.google-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:46px; background:white; border:1px solid #cbd7d2; border-radius:10px; font-weight:600; }
.google-btn svg { width:20px; height:20px; }
.google-note, .password-help { color:#52635e; font-size:12px; margin:10px 0; line-height:1.5; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:22px 0; color:#52635e; font-size:12px; }
.auth-divider::before, .auth-divider::after { content:''; height:1px; flex:1; background:#dfe7e4; }
.status-success, .status-error, .message { padding:16px; border-radius:10px; margin:16px 0; line-height:1.6; overflow-wrap:anywhere; }
.status-success { background:#e6f5ee; color:#15553f; }
.status-error { background:#fff0ef; color:#962b25; }
.message { background:#f2f6f4; color:#41544c; }
a:focus-visible, button:focus-visible, input:focus-visible { outline:3px solid #239879; outline-offset:3px; }
.form-control:focus { border-color:#12664f; box-shadow:0 0 0 3px #12664f20 !important; }
.validation-summary-valid, .field-validation-valid { display:none; }
@media(max-width:540px) { .auth-card, .auth-home-card { padding:24px 20px; } .auth-main { padding:24px 16px; } }

/* =====================================================================
   Design v2 (2026-10): the main site's blue brand colors. Simplified 2026-10-30: one narrow
   card on a light page, slim top bar, no side panel or nav (the old split layout was too wide).
   Appended last so it overrides the older rules above.
   Markup: Pages/Shared/_Layout.cshtml (top bar, content column, one-line footer).
   ===================================================================== */
:root { --spc-blue: #145bd7; --spc-blue-dark: #0f49b2; --spc-ink: #0f172a; --spc-muted: #526079; --spc-line: #dbe4f0; }
html { font-size: 15px; }
body { background: #fff; color: var(--spc-ink); }

/* Top bar: same look as the main site header (white since 2026-11-04) */
.auth-topbar { position: sticky; top: 0; z-index: 50; height: 64px; background: #fff; border-bottom: 1px solid var(--spc-line, #dbe4f0); box-shadow: 0 1px 3px rgba(13, 27, 53, .04); }
.auth-topbar-inner { height: 100%; max-width: 1288px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.auth-topbar-brand { display: flex; align-items: center; gap: 8px; color: #0d1b35; flex: 0 0 auto; }
.auth-topbar-brand:hover { color: #0d1b35; }
.auth-topbar-mark { width: 40px; height: 40px; display: block; overflow: hidden; flex: 0 0 auto; }
.auth-topbar-mark img { display: block; width: auto; height: 40px; max-width: none; object-fit: contain; object-position: left center; }
.auth-topbar-text { display: inline-flex; align-items: baseline; font-size: 22px; line-height: 1; font-weight: 900; letter-spacing: -.5px; color: #0d1b35; }
.auth-topbar-text strong { color: #1f73ff; font-weight: 900; }
.auth-topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.auth-topbar-pill { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 22px; border: 1px solid #1677ff; border-radius: 999px; background: #1677ff; color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.auth-topbar-pill:hover { background: #0f62d8; border-color: #0f62d8; color: #fff; }
.auth-topbar-back { display: inline-flex; align-items: center; gap: .3em; height: 38px; padding: 0 16px; border: 1px solid #0b63e5; border-radius: 999px; color: #0b63e5; font-size: 14px; font-weight: 800; white-space: nowrap; }
.auth-topbar-back:hover { background: #0b63e5; color: #fff; }

/* Page: one narrow card on a light background (no side panel) */
.auth-stage { display: block; min-height: calc(100vh - 64px); background: #f6f8fc; }
.auth-content { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 64px); padding: 40px 20px; }
.auth-stage--plain .auth-content { align-items: flex-start; min-height: 0; padding: 40px 20px 56px; }
.auth-page-wrap { width: 100%; max-width: 440px; }
.auth-stage--plain .auth-page-wrap { max-width: 760px; }

/* Form column */
.auth-page { display: block; padding: 0; }
.auth-card { width: 100%; max-width: none; padding: 32px; background: #fff; border: 1px solid var(--spc-line); border-radius: 16px; box-shadow: 0 8px 30px rgba(15, 23, 42, .06); }
.auth-header { margin-bottom: 24px; text-align: center; }
.auth-header .badge { display: inline-block; padding: 0; background: none; color: var(--spc-blue); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.auth-header h1 { margin: 0 0 6px; color: var(--spc-ink); font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.auth-header p, .auth-body p { color: var(--spc-muted); font-size: 15px; line-height: 1.6; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; background: #fff; border: 1px solid var(--spc-line); border-radius: 12px; color: var(--spc-ink); font-weight: 700; transition: background .16s ease, border-color .16s ease; }
.google-btn:hover { background: #f6f9fe; border-color: #c3d2e8; }
.google-note, .password-help { color: #6b7a90; font-size: 12.5px; line-height: 1.5; }
.google-note { margin: 10px 0 0; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #6b7a90; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--spc-line); }
.form-section-title { display: none; }
.form-floating > .form-control { height: 58px; border: 1px solid var(--spc-line); border-radius: 12px; background: #fff; color: var(--spc-ink); box-shadow: none; }
.form-floating > label { color: #6b7a90; }
.form-control:focus { border-color: var(--spc-blue); box-shadow: 0 0 0 4px rgba(20, 91, 215, .14) !important; }
.form-check-input:checked { background-color: var(--spc-blue); border-color: var(--spc-blue); }
.checkbox label { color: var(--spc-muted); font-size: 14px; }
.auth-card .btn-primary, .btn-primary, .primary-link, .logout-btn { min-height: 52px; border: 1px solid var(--spc-blue); border-radius: 12px; background: var(--spc-blue); color: #fff; font-size: 16px; font-weight: 700; }
.auth-card .btn-primary:hover, .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .primary-link:hover { border-color: var(--spc-blue-dark); background: var(--spc-blue-dark); color: #fff; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; font-size: 14px; }
.auth-row .checkbox { margin: 0; }
.auth-row a { color: var(--spc-blue); font-weight: 700; }
.auth-row a:hover { text-decoration: underline; }
.auth-links { display: grid; gap: 10px; margin-top: 22px; color: var(--spc-muted); font-size: 14px; text-align: center; }
.auth-links p { margin: 0; }
.auth-links a, .secondary-link { color: var(--spc-blue); font-weight: 700; }
.auth-links a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #2f8cff; outline-offset: 3px; }
.auth-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 20px; color: #6b7a90; font-size: 12.5px; }
.auth-footer a:hover { color: var(--spc-blue); text-decoration: underline; }

/* Account settings (single wide column) */
.account-card { border: 1px solid var(--spc-line); border-radius: 16px; background: #fff; box-shadow: 0 16px 40px rgba(15, 23, 42, .06); }
.account-link-pill.active { border-color: var(--spc-blue); background: var(--spc-blue); color: #fff; }
.account-header::before { background: #eaf2ff; color: #0647b8; }
.btn-account-primary { border-color: var(--spc-blue); background: var(--spc-blue); }
.btn-account-primary:hover { border-color: var(--spc-blue-dark); background: var(--spc-blue-dark); }

@media (width <= 540px) {
  .auth-card { padding: 24px 20px; }
  .auth-header h1 { font-size: 24px; }
  .auth-content { align-items: flex-start; min-height: 0; padding: 24px 14px 40px; }
}
@media (width <= 480px) {
  .auth-topbar-inner { gap: 12px; padding: 0 14px; }
  .auth-topbar-mark { width: 34px; height: 34px; }
  .auth-topbar-mark img { height: 34px; }
  .auth-topbar-text { font-size: 19px; }
  .auth-topbar-back { padding: 0 14px; }
  .auth-topbar-back-long { display: none; }
}
