/* Shared public shell styles for marketing/help pages. */

body.public-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 !important;
  background-color: var(--brand-background);
}

body.public-shell > .public-shell-frame {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  border-radius: 0 !important;
  padding-top: 0 !important;
  background: var(--brand-background) !important;
}

body.public-shell > .public-shell-frame > main {
  flex: 1 0 auto;
}

.home-navbar {
  background: var(--brand-navy);
  position: sticky;
  top: 0;
  z-index: 1030;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-navbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-nav-brand img {
  height: 36px;
  display: block;
}

.home-nav-links a,
.home-nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.home-nav-links a:hover,
.home-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.home-nav-toggler {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.btn-brand-primary {
  background: var(--brand-primary);
  color: #fff;
  border: 1px solid var(--brand-primary);
  box-shadow: 0 12px 30px rgba(34, 199, 214, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus {
  background: #16b8c8;
  border-color: #16b8c8;
  color: #fff;
}

.btn-brand-primary:active {
  background: #11a4b3;
  border-color: #11a4b3;
  color: #fff;
}

.btn-brand-secondary {
  background: transparent;
  color: var(--brand-navy);
  border: 1px solid rgba(2, 24, 59, 0.16);
  box-shadow: none;
}

.btn-brand-secondary:hover,
.btn-brand-secondary:focus {
  background: rgba(2, 24, 59, 0.04);
  border-color: rgba(2, 24, 59, 0.3);
  color: var(--brand-navy);
}

.home-footer {
  background: var(--brand-navy);
  padding: 4rem 0 2rem;
  color: rgba(255, 255, 255, 0.6);
}

.home-footer-logo img {
  height: 32px;
  margin-bottom: 0.75rem;
}

.home-footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 260px;
}

.home-footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}

.home-footer-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.home-footer-link:hover {
  color: #fff;
}

.home-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.home-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.home-footer-social a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.home-footer-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0 1.5rem;
}

.home-footer-bottom {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
}

#homeSharedNavMobile {
  background: rgba(2, 24, 59, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#homeSharedNavMobile .container {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

#homeSharedNavMobile .home-nav-link {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
}

#homeSharedNavMobile .btn {
  min-height: 2.9rem;
}

.auth-main {
  min-height: 100vh;
}

.auth-main {
  background:
    radial-gradient(circle at top left, rgba(34, 199, 214, 0.08), transparent 28%),
    var(--brand-background);
}

.auth-main .auth-shell-gradient {
  background-image:
    radial-gradient(circle at 12% 14%, rgba(34, 199, 214, 0.2), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(76, 111, 255, 0.2), transparent 38%),
    linear-gradient(145deg, #02183b 0%, #0a2d5f 45%, #0f4f8a 100%);
  background-color: #02183b;
}

.auth-side-panel h1,
.auth-side-panel p {
  text-shadow: 0 2px 16px rgba(2, 24, 59, 0.3);
}

.auth-side-logo img {
  height: 38px;
  width: auto;
  display: block;
}

.auth-mobile-logo img {
  height: 34px;
  width: auto;
  display: inline-block;
}

.auth-shell-gradient {
  min-height: 100vh;
}

.auth-form-column {
  min-height: 100vh;
}

.auth-form-column > div {
  width: min(100%, 35rem);
}

.auth-form-column .form-control,
.auth-form-column .form-select {
  min-height: 3rem;
  border-radius: 0.95rem;
  border-color: var(--x-gray-300);
}

.auth-form-column .form-control:focus,
.auth-form-column .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.25rem rgba(34, 199, 214, 0.16);
}

.auth-form-column .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  line-height: 1.2;
  border-radius: 999px;
  font-weight: 700;
}

.auth-form-column .text-xs {
  letter-spacing: 0.08em;
  color: var(--x-gray-500);
}

.contact-public-section,
.contact-auth-section {
  padding-bottom: 7rem;
}

.contact-public-form,
.contact-auth-card {
  background: var(--brand-surface);
  border: 1px solid rgba(2, 24, 59, 0.06);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.contact-auth-card {
  background: var(--brand-background);
  border-color: rgba(2, 24, 59, 0.1);
}

.contact-public-form {
  padding: 1.75rem;
}

.contact-public-form .btn,
.contact-auth-card .btn {
  min-height: 3.25rem;
  border-radius: 999px;
  font-weight: 700;
}

.contact-public-form .form-control,
.contact-public-form .form-select,
.contact-auth-card .form-control,
.contact-auth-card .form-select {
  border-radius: 1rem;
}

.account-content-shell {
  background: var(--brand-background);
  border: 0;
  border-radius: 1rem;
  padding: 1.5rem;
}

.profile-form .form-control,
.profile-form .form-select,
.profile-form select {
  background-color: #fff;
}

.profile-form .bg-light {
  background-color: #fff !important;
}

.profile-form .form-control:disabled,
.profile-form .form-select:disabled,
.profile-form select:disabled {
  background-color: #fff;
  color: #64748b;
  opacity: 1;
}

.offline-section {
  background:
    radial-gradient(circle at top right, rgba(34, 199, 214, 0.08), transparent 35%),
    var(--brand-background);
}

.offline-card {
  background: var(--brand-surface);
  border: 1px solid rgba(2, 24, 59, 0.08);
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.offline-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 199, 214, 0.12);
  color: var(--brand-primary);
  font-size: 1.6rem;
}

@media (min-width: 992px) {
  .auth-main {
    height: 100vh;
    overflow: hidden;
  }

  .auth-shell-gradient {
    height: 100vh;
    overflow: hidden;
  }

  .auth-side-panel {
    top: 0;
    height: 100vh;
    overflow: hidden;
  }

  .auth-form-column {
    height: 100vh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }
}

@media (max-width: 991.98px) {
  .auth-main {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .auth-shell-gradient {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .auth-form-column {
    min-height: auto;
    border-radius: 1.5rem 1.5rem 0 0;
    justify-content: flex-start;
  }

  .contact-public-section,
  .contact-auth-section {
    padding-bottom: 5rem;
  }
}

@media (max-width: 767.98px) {
  .home-navbar-inner {
    height: 60px;
    gap: 0.75rem;
  }

  .home-nav-brand img {
    height: 32px;
  }

  .home-nav-toggler {
    padding: 0.35rem 0.7rem;
    border-radius: 0.85rem;
  }

  #homeSharedNavMobile .container {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  #homeSharedNavMobile nav {
    gap: 0.35rem !important;
    margin-bottom: 0.85rem !important;
  }

  #homeSharedNavMobile .d-flex {
    flex-direction: column;
    gap: 0.6rem !important;
  }

  #homeSharedNavMobile .d-flex .btn {
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
  }

  .auth-form-column {
    border-radius: 0 !important;
  }

  .auth-form-column > div {
    width: 100%;
    padding-top: 2.25rem !important;
    padding-bottom: 2.75rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .auth-form-column h1.h3 {
    font-size: 1.65rem;
    line-height: 1.2;
  }

  .auth-form-column .mb-10 {
    margin-bottom: 2rem !important;
  }

  .auth-form-column .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .auth-form-column .btn {
    min-height: 3.1rem;
  }

  .contact-public-section {
    padding-top: 3.5rem !important;
    padding-bottom: 4.5rem !important;
  }

  .contact-auth-section {
    padding-top: 1.25rem !important;
    padding-bottom: 4.5rem !important;
  }

  .contact-public-form,
  .contact-auth-card {
    border-radius: 1.25rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  }

  .contact-public-form {
    padding: 1.25rem;
  }

  .contact-public-section .display-3 {
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: 1.05;
    margin-bottom: 1.5rem !important;
  }

  .contact-public-section .lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .contact-public-section h4 {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .contact-public-form .btn,
  .contact-auth-card .btn {
    min-height: 3.1rem;
  }

  .offline-card {
    border-radius: 1.25rem;
  }

  .account-content-shell {
    border-radius: 0.9rem;
    padding: 1.15rem;
  }

  .offline-icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.4rem;
  }

  .home-footer {
    padding: 3rem 0 1.75rem;
  }

  .home-footer .row.g-5 {
    --x-gutter-y: 1.25rem;
  }

  .home-footer-logo img {
    height: 28px;
  }

  .home-footer-tagline {
    max-width: none;
    font-size: 0.84rem;
  }

  .home-footer-social {
    margin-top: 1rem;
  }

  .home-footer-heading {
    margin-bottom: 0.75rem;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .home-footer-link {
    padding: 0.35rem 0;
    font-size: 0.8rem;
    line-height: 1.25;
  }

  .footer-quick-col {
    min-width: 0;
  }

  .footer-quick-col .home-footer-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-quick-col .home-footer-heading {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.56rem;
    letter-spacing: 0.05em;
    line-height: 1.15;
    min-height: 1.3rem;
  }

  .footer-email-link {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 0.66rem;
    line-height: 1.2;
  }

  .footer-email-row {
    text-align: right;
    margin-top: 0.15rem;
  }

  .footer-email-row .footer-email-link {
    display: block;
    width: 100%;
    text-align: right;
  }

  .home-footer-divider {
    margin: 2rem 0 1.25rem;
  }

  .home-footer-bottom {
    font-size: 0.76rem;
  }
}
