/* Shared navigation and authentication. Kept separate from page layouts. */
.sc-nav .sc-nav-brand img { display: block; width: 100%; }
.sc-nav button.sc-nav-control { border: 0; background: transparent; padding: 8px; }
.sc-nav button.sc-nav-control:hover { background: var(--sc-raised); }
.sc-nav button.sc-nav-control.sc-nav-active { background: #15334a; }
.sc-nav a:focus-visible, .sc-nav button:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.sc-account-menu.MuiPaper-root { min-width: 190px; background: #141f31; color: #e8eef7; border: 1px solid #2b3b53; border-radius: 14px; box-shadow: 0 12px 36px #0006; }
.sc-account-menu .MuiMenu-list { padding: 6px; }
.sc-account-menu .MuiMenuItem-root { min-height: 44px; display: flex; gap: 12px; color: #e8eef7; text-decoration: none; font-size: 14px; border-radius: 8px; }
.sc-account-menu .MuiMenuItem-root:hover, .sc-account-menu .MuiMenuItem-root.Mui-focusVisible { background: #243750; color: white; }
.sc-account-menu .MuiMenuItem-root svg { font-size: 20px; color: #a9b8cd; }
.sc-navigation-error { list-style: none; padding: 10px 12px; margin: 0; max-width: 220px; color: #fda4af; font-size: 12px; line-height: 1.5; }
.sc-mobile-nav.nav-block { position: sticky !important; top: 0; z-index: 100; padding: 0; width: 100%; height: auto; min-height: 64px; background: #0b1220; border-bottom: 1px solid #2b3b53; }
.sc-mobile-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 10px 18px; }
.sc-mobile-brand { display: inline-flex; align-items: center; gap: 10px; color: #f4f8ff !important; text-decoration: none !important; font-size: 20px; font-weight: 700; letter-spacing: -.6px; }
.sc-mobile-brand img { width: 28px; height: 34px; object-fit: contain; }
.sc-mobile-toggle.navbar-toggler { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 8px; background: #141f31; border-color: #2b3b53 !important; color: #e8eef7; cursor: pointer; }
.sc-mobile-toggle svg { width: 24px; height: 24px; }
.sc-mobile-menu { padding: 0 16px 16px; max-height: calc(100dvh - 66px); overflow-y: auto; }
.sc-mobile-menu[hidden] { display: none !important; }
.sc-mobile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 0 12px; }
.sc-mobile-account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; border-top: 1px solid #2b3b53; padding-top: 12px; }
.sc-mobile-menu a, .sc-mobile-menu button { display: flex; align-items: center; gap: 10px; min-height: 46px; min-width: 0; padding: 10px 12px; color: #c4d0e1; background: transparent; border: 0; border-radius: 9px; text-decoration: none; text-align: left; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.sc-mobile-menu svg { width: 21px; height: 21px; flex: 0 0 auto; }
.sc-mobile-menu a:hover, .sc-mobile-menu button:hover { color: white; background: #1a2940; }
.sc-mobile-menu .sc-mobile-active { background: #15334a; color: #67d3ff; }
.sc-mobile-menu button:disabled { cursor: wait; opacity: .6; }
.sc-mobile-nav a:focus-visible, .sc-mobile-nav button:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.sc-mobile-email { overflow-wrap: anywhere; color: #8294af; font-size: 12px; margin: 12px 12px 0; }
.sc-auth-page { width: 100%; min-height: 100dvh; }
.sc-auth-page .sc-login-page { display: block; }
.sc-auth-page .sc-login-container { margin: 0 auto; width: 100%; }
.sc-auth-page .sc-login-brand { text-decoration: none; }
.sc-auth-page .sc-auth-card { max-width: 440px; margin: 0 auto !important; padding: 28px 30px 24px; }
.sc-auth-icon { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin-bottom: 14px; color: #17688f; background: #e9f3f9; border: 1px solid #d4e6f2; border-radius: 12px; }
.sc-auth-page h2.sc-login-heading { padding: 0 !important; font-size: 22px; line-height: 1.35; letter-spacing: -.45px; }
.sc-auth-description { margin: 8px 0 24px; color: #617087; font-size: 13px; line-height: 1.65; }
.sc-auth-field { margin: 0 0 18px; }
.sc-auth-field label { display: block; margin-bottom: 8px; font-size: 13px; line-height: 1.4; font-weight: 650; color: #34445b !important; }
.sc-auth-input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 13px; border: 1px solid #bfccdb; border-radius: 8px; background: #fff; transition: box-shadow .15s, border-color .15s; }
.sc-auth-input:focus-within { border-color: #147cad; box-shadow: 0 0 0 3px #147cad20; }
.sc-auth-input > svg { flex: 0 0 auto; width: 20px; color: #718197; }
.sc-auth-page .sc-auth-input input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; color: #18283e; font-size: 15px; }
.sc-auth-input input::placeholder { color: #8390a2; opacity: 1; }
.sc-auth-card button.sc-auth-submit, .sc-auth-card button.sc-auth-switch { display: flex; justify-content: center; align-items: center; gap: 9px; padding: 12px 16px; border: 0; cursor: pointer; }
.sc-auth-card button.sc-auth-submit { margin-top: 24px; }
.sc-auth-card button.sc-auth-switch { margin-top: 10px; }
.sc-auth-card button svg { width: 18px; height: 18px; }
.sc-auth-card button:disabled { opacity: .58; cursor: not-allowed; }
.sc-auth-card button:focus-visible { outline: 3px solid #38bdf8; outline-offset: 3px; }
.sc-auth-message { margin: 16px 0 0; padding: 12px; border-radius: 8px; font-size: 13px; line-height: 1.55; }
.sc-auth-error { background: #fff1f2; color: #a62940; border: 1px solid #fecdd3; }
.sc-auth-success { display: flex; gap: 8px; align-items: flex-start; background: #ecfdf5; color: #166145; border: 1px solid #bbf7d0; }
.sc-auth-success > svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; }
.sc-auth-support { margin: 24px 0 0; color: #9dacc0; text-align: center; font-size: 13px; }
.sc-auth-support button { margin: 0; padding: 0; color: #7dd3fc; background: transparent; border: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sc-auth-support button:hover { color: #bae6fd; }
.sc-auth-support button:focus-visible, .sc-login-brand:focus-visible { outline: 2px solid #38bdf8; outline-offset: 4px; }
@media (max-width: 600px) {
  .sc-auth-page .sc-login-container { padding: 30px 18px 42px !important; }
  .sc-auth-page .sc-auth-card { padding: 24px 22px; }
  .sc-auth-page .sc-login-intro { margin-top: 28px; }
  .sc-auth-page .sc-login-intro p { max-width: 290px; margin-inline: auto; }
  .sc-auth-page .sc-auth-input input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-auth-input { transition: none; }
}
