/*
 * sc-auth.css — OWNED module for the sign-in / register / password-reset family.
 *
 * Bootstrapped from the generated public compatibility bundle, then owned by
 * hand. These selectors (auth-*, register-*) are excluded from the generated
 * bundles via OWNED_MODULES in scripts/build-css-bundles.js, so this file is
 * now their single source of truth. Loaded after the public bundle in
 * public shell mode (see views/partials/header.ejs).
 */
.auth-panel,
.auth-aside {
  border: 1px solid var(--border) !important;
      border-radius: var(--radius-lg) !important;
      background: var(--surface) !important;
      box-shadow: var(--shadow-sm) !important;
}

.auth-panel,
.auth-aside {
  padding: 24px;
}

.auth-inline-link {
  color: var(--ink-soft) !important;
      line-height: 1.65;
}

.auth-layout {
  display: grid;
      grid-template-columns: minmax(0, 1.05fr) 380px;
      gap: 24px;
      align-items: stretch;
}

.auth-panel {
  border-left: 4px solid var(--nhs-blue) !important;
}

.auth-panel .page-kicker {
  background: var(--nhs-blue-bg);
      border-color: var(--nhs-blue-pale);
      color: var(--nhs-navy);
}

.auth-icon {
  display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 56px;
      height: 56px;
      border-radius: var(--radius-lg);
      background: var(--nhs-blue-bg);
      border: 1px solid var(--nhs-blue-pale);
      color: var(--nhs-blue);
      font-size: 1.6rem;
}

/* .auth-highlight-list is always paired with .professional-list, whose
   `margin: 0` (loaded later in the original cascade) won — so the legacy
   `margin-top: 16px` here was dead. Reconciled to the effective cascade;
   this module only adds the row dividers on top of .professional-list. */
.auth-highlight-list li {
  border-bottom: 1px solid var(--border);
      padding: 0.8rem 0;
}

.auth-highlight-list li:last-child {
  border-bottom: none;
}

.auth-inline-link a {
  font-weight: 600;
      color: var(--nhs-blue);
}

@media (max-width: 1279.98px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .auth-panel,
  .auth-aside {
    padding: 18px;
  }
}

.auth-panel,
.auth-aside {
  border: 1px solid var(--border) !important;
      border-radius: 30px !important;
      background: var(--surface) !important;
      box-shadow: var(--shadow-sm) !important;
      backdrop-filter: blur(12px);
}

.auth-inline-link {
  color: var(--ink-soft) !important;
}

.auth-panel,
.auth-aside {
  border-radius: 20px !important;
}

.auth-panel,
.auth-aside {
  border-color: var(--border) !important;
      background: rgba(255, 255, 255, 0.96) !important;
      box-shadow: 0 14px 34px rgba(0, 43, 95, 0.08), 0 4px 14px rgba(201, 0, 90, 0.04) !important;
}

.auth-panel,
.auth-aside {
  border-color: var(--border) !important;
      background: rgba(255, 255, 255, 0.97) !important;
      color: var(--ink);
}

.auth-panel,
.auth-aside {
  border: 1px solid var(--fnd-border) !important;
      border-radius: var(--fnd-radius-lg) !important;
      color: var(--fnd-ink);
      background: var(--fnd-white) !important;
      box-shadow: var(--fnd-shadow) !important;
}

.auth-panel,
.auth-aside {
  padding: clamp(20px, 2vw, 28px);
}

.auth-layout {
  width: min(100%, 1180px);
      margin-inline: auto;
}

.auth-layout {
  display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
      gap: 1.5rem;
      align-items: start;
      margin-top: 2rem;
}

.auth-panel,
.auth-aside {
  min-width: 0;
}

.auth-aside {
  display: grid;
      gap: 0.85rem;
}

.auth-panel form,
.auth-form-section {
  display: grid;
      gap: 1rem;
}

.auth-form-section {
  margin: 0;
      padding: 0 0 1.25rem;
      border: 0;
      border-bottom: 1px solid var(--fnd-border);
}

.auth-form-section legend {
  margin: 0;
      color: var(--fnd-navy);
      font-size: 1.1rem;
      font-weight: 800;
}

.auth-form-section > p {
  margin: -0.7rem 0 0;
      color: var(--fnd-muted);
      font-size: 0.88rem;
}

.register-profile-grid {
  display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.85rem;
}

.auth-consent-box {
  display: grid;
      gap: 0.75rem;
      padding: 1rem;
      border: 1px solid var(--fnd-border);
      border-radius: var(--fnd-radius);
      background: var(--fnd-page);
}

.auth-consent-box h2,
.auth-consent-box p {
  margin: 0;
}

.auth-consent-box h2 {
  color: var(--fnd-navy);
      font-size: 1.05rem;
}

.auth-consent-box p {
  color: var(--fnd-muted);
      font-size: 0.9rem;
}

.auth-guided-next,
.auth-resource-link {
  display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: start;
      gap: 0.75rem;
      padding: 1rem;
      border: 1px solid var(--fnd-border);
      border-radius: var(--fnd-radius);
      color: var(--fnd-navy);
      background: var(--fnd-blue-pale);
      text-decoration: none;
}

.auth-guided-next i,
.auth-resource-link i {
  font-size: 1.15rem;
}

.auth-guided-next strong,
.auth-guided-next span,
.auth-resource-link strong,
.auth-resource-link small {
  display: block;
}

.auth-guided-next span,
.auth-resource-link small {
  margin-top: 0.15rem;
      color: var(--fnd-muted);
      line-height: 1.45;
}

@media (max-width: 991.98px) {
  .auth-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 767.98px) {
  .register-profile-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel,
  .auth-aside {
    padding: 1rem !important;
  }

  .register-profile-grid {
    grid-template-columns: 1fr;
  }
}

.app-body .auth-layout {
  width: min(100%, 1180px);
      max-width: none;
      margin-inline: auto;
      display: grid;
      grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
      gap: var(--space-5);
      align-items: start;
}

.app-body .auth-panel,
.app-body .auth-aside {
  min-width: 0;
}

.app-body .auth-panel {
  padding: var(--space-6);
      border-radius: var(--radius-2xl);
      border: 1px solid var(--fnd-border);
      background: var(--fnd-white);
      box-shadow: var(--shadow-md);
}

.app-body .auth-aside {
  padding: var(--space-6);
      border-radius: var(--radius-2xl);
      border: 1px solid var(--fnd-border);
      background: var(--fnd-white);
      box-shadow: var(--shadow-sm);
}

.app-body .auth-panel .section-heading,
.app-body .auth-aside .section-heading {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
      margin-bottom: 0.35rem;
}

.app-body .auth-panel .btn-primary {
  width: 100%;
      max-width: 20rem;
}

.app-body .auth-policy-links {
  display: flex;
      flex-wrap: wrap;
      gap: 0.35rem 1rem;
      margin-top: 1.25rem;
      padding-top: 1rem;
      border-top: 1px solid var(--fnd-border);
}

.app-body .auth-policy-links a {
  color: var(--fnd-muted);
      font-size: var(--text-sm);
      text-decoration: none;
}

.app-body .auth-policy-links a:hover {
  color: var(--fnd-magenta);
}

@media (max-width: 991.98px) {
  .app-body .auth-layout {
    grid-template-columns: 1fr;
            width: min(100%, 32rem);
  }

  .app-body .auth-panel .btn-primary {
    max-width: none;
  }
}

@media (min-width: 992px) {
  .app-body .auth-layout {
    width: min(100%, 1120px) !important;
            max-width: none !important;
            grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr) !important;
            gap: 1.75rem !important;
            margin-top: 2.25rem !important;
            margin-bottom: 2.5rem;
  }

  .app-body .auth-panel,
  .app-body .auth-aside {
    padding: 2rem 2.1rem !important;
            border-radius: 22px !important;
            box-shadow: var(--desktop-shadow) !important;
  }

  .app-body .auth-panel .section-heading,
  .app-body .auth-aside .section-heading {
    font-size: 1.75rem !important;
            letter-spacing: -0.03em !important;
            line-height: 1.15 !important;
  }

  .app-body .auth-panel .section-copy {
    font-size: 1.02rem !important;
            max-width: 36rem;
  }

  .app-body .auth-panel .btn-primary {
    max-width: 16rem;
            min-height: 3.05rem !important;
  }
}

@media (min-width: 1280px) {
  .app-body .auth-layout {
    width: min(100%, 1180px) !important;
  }
}
