/* CM Clearance login refresh + privacy pages. Scoped to avoid affecting staff dashboards. */
.auth-login-body { background: #022f26; }
.clearance-login-shell {
  min-height: 100vh; min-height: 100svh; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 34%);
  position: relative; isolation: isolate;
  background-color: #063d32;
  background-image: linear-gradient(90deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.16) 43%, rgba(0,45,36,.12) 70%, rgba(0,38,31,.28) 100%), url('../img/clearance-hero.webp');
  background-size: cover; background-position: center center; background-repeat: no-repeat;
}
.clearance-hero-panel { min-width: 0; display: flex; position: relative; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.91) 47%, rgba(255,255,255,.69) 72%, rgba(255,255,255,.10) 100%); }
.clearance-hero-content { width: 100%; min-height: 100vh; min-height: 100svh; padding: clamp(26px, 3.4vw, 60px) clamp(22px, 4.4vw, 76px) clamp(20px, 2.6vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.clearance-hero-brand { display: flex; align-items: center; gap: 16px; max-width: 100%; }
.clearance-hero-brand img { display: block; width: clamp(60px, 5.4vw, 88px); height: auto; aspect-ratio: 1; object-fit: contain; flex: none; background: rgba(255,255,255,.72); border-radius: 50%; padding: 3px; box-shadow: 0 5px 24px rgba(0,45,36,.12); }
.clearance-hero-brand span { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.clearance-hero-brand strong { font-size: clamp(13px, 1.4vw, 22px); color: #064b3e; letter-spacing: .025em; font-weight: 800; }
.clearance-hero-brand em { margin-top: 6px; font-style: normal; font-size: 10px; letter-spacing: .32em; color: #3d6f62; }
.clearance-hero-copy { margin: clamp(40px, 5.5vh, 68px) 0 28px; width: min(100%, 760px); }
.clearance-eyebrow { margin: 0 0 16px; color: #0b6956; font-size: .72rem; font-weight: 800; letter-spacing: .21em; line-height: 1.5; }
.clearance-eyebrow span { padding-inline: 4px; color: #b7944b; }
.clearance-hero-copy h1 { margin: 0; color: #063e33; font-family: var(--font); font-size: clamp(42px, 5.55vw, 88px); font-weight: 900; line-height: .89; letter-spacing: -.065em; }
.clearance-hero-copy h1 span { color: #087461; }
.clearance-hero-subtitle { margin: 11px 0 14px; color: #075b4b; font-size: clamp(.9rem, 1.3vw, 1.25rem); font-weight: 800; letter-spacing: .27em; line-height: 1.35; }
.clearance-hero-description { max-width: 510px; margin: 0; color: #30443d; font-size: clamp(.94rem, 1.12vw, 1.13rem); line-height: 1.62; text-wrap: pretty; }
.clearance-feature-grid { width: min(100%, 720px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(22px, 3.5vh, 38px); border-top: 1px solid rgba(5,91,73,.14); border-bottom: 1px solid rgba(5,91,73,.14); }
.clearance-feature { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; text-align: center; padding: 14px 9px 16px; color: #123e33; }
.clearance-feature + .clearance-feature { border-left: 1px solid rgba(5,91,73,.20); }
.clearance-feature > span { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #087762, #014b3c); box-shadow: 0 6px 18px rgba(0,70,54,.16); }
.clearance-feature strong { font-size: clamp(.69rem, .79vw, .82rem); font-weight: 750; line-height: 1.32; }
.clearance-hero-bottom { margin-top: auto; width: min(100%, 760px); padding-top: 18px; }
.clearance-hero-motto { margin: 0 0 12px; color: #0c6b58; font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.55vw, 1.5rem); }
.privacy-inline-notice { display: flex; align-items: center; gap: 10px; width: min(100%, 690px); padding: 10px 12px; border: 1px solid rgba(5,88,70,.20); border-radius: 13px; color: #26483e; background: rgba(255,255,255,.75); box-shadow: 0 5px 18px rgba(0,39,32,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.privacy-inline-notice[hidden] { display: none !important; }
.privacy-notice-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #e1f1e9; color: #05604c; }
.privacy-inline-notice p { min-width: 0; flex: 1; margin: 0; font-size: .72rem; line-height: 1.45; }
.privacy-inline-notice p strong { color: #064b3e; }
.privacy-inline-notice a { color: #075e4c; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.privacy-notice-dismiss { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #335e52; background: transparent; font: inherit; font-size: 1.35rem; cursor: pointer; }
.privacy-notice-dismiss:hover { background: rgba(5,91,73,.08); }
.clearance-login-side { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: clamp(20px, 3vw, 46px) clamp(16px, 2.3vw, 38px); background: linear-gradient(180deg, rgba(0,47,38,.30), rgba(0,39,32,.48)); }
.auth-card-glass { width: min(460px, 100%); max-width: 460px; padding: clamp(24px, 2.7vw, 38px); border: 1px solid rgba(255,255,255,.72); border-radius: 26px; background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(241,249,245,.74)); box-shadow: 0 24px 70px rgba(0,26,21,.28), inset 0 1px 0 rgba(255,255,255,.85); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
.clearance-card-brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 0 auto 22px; }
.clearance-card-brand img { width: 70px; height: 70px; object-fit: contain; border-radius: 50%; margin-bottom: 10px; }
.clearance-card-brand strong { color: #064b3e; font-size: .83rem; letter-spacing: .035em; }
.clearance-card-brand span { margin-top: 5px; color: #557369; font-size: .6rem; letter-spacing: .27em; }
.clearance-card-brand i { width: 48px; height: 1px; background: #8cb4a5; margin-top: 16px; }
.auth-card-glass h2 { color: #063e33; font-family: var(--font); font-size: clamp(1.24rem, 1.5vw, 1.48rem); text-align: center; letter-spacing: -.035em; line-height: 1.3; margin: 0 0 7px; }
.auth-card-glass .clearance-login-intro { max-width: 370px; margin: 0 auto 22px; color: #50655d; line-height: 1.55; text-align: center; }
.auth-card-glass .field { margin-bottom: 15px; gap: 7px; }
.auth-card-glass .field > label { color: #294f43; font-size: .79rem; }
.auth-card-glass input[type=text], .auth-card-glass input[type=password] { min-height: 50px; padding: 12px 14px; border: 1px solid #d0e0d8; border-radius: 12px; color: #183d32; background: rgba(255,255,255,.96); box-shadow: 0 2px 6px rgba(0,49,39,.035); font-size: .91rem; }
.auth-card-glass input::placeholder { color: #84968f; opacity: 1; }
.auth-card-glass input:focus-visible { border-color: #087461; box-shadow: 0 0 0 4px rgba(8,116,97,.15); }
.auth-card-glass .pw-toggle button { color: #286354; }
.auth-card-glass .clearance-signin-button { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding-inline: 20px; margin-top: 4px; border-radius: 999px; background: linear-gradient(100deg, #087461, #003f34); border-color: #075747; box-shadow: 0 7px 16px rgba(0,65,51,.15); }
.auth-card-glass .clearance-signin-button span { font-size: 1.35rem; line-height: 1; }
.auth-card-glass .clearance-signin-button:hover { background: linear-gradient(100deg, #066351, #002f27); }
.clearance-reset-note { line-height: 1.55; margin: 16px 0 0; font-size: .75rem; }
.clearance-secondary-links { display: flex; justify-content: center; gap: 10px; align-items: center; flex-wrap: wrap; margin: 9px 0 0; font-weight: 600; font-size: .78rem; }
.auth-policy-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(4,79,63,.16); color: #668078; font-size: .72rem; line-height: 1.5; }
.auth-policy-links a { color: #245e4f; font-weight: 700; text-underline-offset: 3px; }
.clearance-trust-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; margin: 0; color: #ecf7f0; font-size: .72rem; text-align: center; }
.clearance-trust-line span { display: inline-flex; align-items: center; gap: 6px; }
.auth-login-body .flash { font-size: .84rem; }
.auth-login-body .auth-card-glass .flash { margin-bottom: 16px; }

/* Policy pages use a normal-flow layout; no fixed overlays or floating shortcuts. */
.auth-policy-body { min-height: 100vh; background: #eef4f0; color: #17352d; }
.privacy-page-shell { width: min(1120px, 100%); margin: 0 auto; padding: clamp(16px, 3vw, 34px); }
.privacy-page-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 5px 0 24px; }
.privacy-page-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.privacy-page-brand img { flex: none; border-radius: 50%; object-fit: contain; background: #fff; }
.privacy-page-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.privacy-page-brand strong { color: #064b3e; font-size: .86rem; letter-spacing: .04em; }
.privacy-page-brand em { font-style: normal; color: #657d73; font-size: .68rem; letter-spacing: .18em; margin-top: 5px; }
.privacy-page-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.privacy-page-header nav a { padding: 8px 12px; border-radius: 9px; color: #315d4e; font-size: .83rem; font-weight: 650; }
.privacy-page-header nav a[aria-current="page"] { background: #dceee4; color: #064b3e; }
.privacy-page-header nav .privacy-back-login { color: #fff; background: #07594b; margin-left: 3px; }
.privacy-document-card { padding: clamp(22px, 4vw, 54px); border: 1px solid #dbe6df; border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 20px 60px rgba(19,57,42,.08); }
.policy-prose { max-width: 850px; margin: 0 auto; color: #2f453c; font-size: .95rem; line-height: 1.75; }
.policy-heading { padding-bottom: 18px; border-bottom: 1px solid #e0eae4; margin-bottom: 24px; }
.policy-kicker { color: #087461; font-size: .72rem; font-weight: 800; letter-spacing: .13em; margin: 0 0 8px; }
.policy-heading h1 { margin: 0 0 12px; color: #073f33; font-size: clamp(1.85rem, 3.4vw, 2.6rem); letter-spacing: -.045em; }
.policy-heading > p:not(.policy-kicker):not(.policy-meta) { max-width: 760px; color: #50665d; margin-bottom: 10px; }
.policy-meta { margin: 0; color: #64796f; font-size: .78rem; }
.policy-prose h2 { margin: 26px 0 8px; color: #075343; font-size: 1.12rem; letter-spacing: -.015em; }
.policy-prose p { margin: 0 0 12px; }
.policy-prose ul { margin: 0 0 14px; padding-left: 1.3rem; }
.policy-prose li { margin: 0 0 7px; padding-left: 3px; }
.policy-prose a { color: #056751; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.policy-callout { padding: 17px 19px; margin: 0 0 23px; background: #eef7f1; border: 1px solid #d3e8db; border-left: 4px solid #087461; border-radius: 12px; }
.policy-callout strong { color: #075343; }
.policy-callout p { margin: 4px 0 0; }
.policy-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #e0e8e3; border-radius: 12px; margin: 8px 0 18px; }
.policy-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .83rem; line-height: 1.55; }
.policy-table th, .policy-table td { padding: 12px 14px; vertical-align: top; text-align: left; border-bottom: 1px solid #e4ece7; }
.policy-table thead th { color: #16493a; background: #eff6f1; font-size: .77rem; }
.policy-table tr:last-child td { border-bottom: 0; }
.policy-table code { white-space: nowrap; background: #eff4f0; padding: 2px 5px; border-radius: 4px; }
.policy-sources { margin-top: 28px; border-top: 1px solid #e0eae4; padding-top: 16px; color: #60746b; font-size: .8rem; line-height: 1.65; }
.privacy-page-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 2px 5px; color: #60746b; font-size: .8rem; }
.privacy-page-footer a { color: #07594b; font-weight: 700; }
.privacy-footer-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0 4px; color: var(--ink-3); font-size: .75rem; }
.privacy-footer-links a { color: var(--g-700); font-weight: 650; text-underline-offset: 3px; }

@media (min-width: 1500px) {
  .clearance-login-shell { grid-template-columns: minmax(0, 1fr) minmax(440px, 33%); }
  .clearance-hero-copy h1 { font-size: clamp(72px, 5.2vw, 100px); }
}
@media (max-width: 1050px) {
  .clearance-login-shell { grid-template-columns: minmax(0, 1fr) minmax(370px, 42%); background-position: 58% center; }
  .clearance-hero-content { padding-inline: clamp(22px, 3vw, 34px); }
  .clearance-hero-copy h1 { font-size: clamp(42px, 5.4vw, 64px); }
  .clearance-hero-brand strong { font-size: 14px; }
  .clearance-feature { padding-inline: 5px; }
  .clearance-feature > span { width: 46px; height: 46px; border-radius: 14px; }
}
@media (max-width: 780px) {
  .clearance-login-shell { display: flex; flex-direction: column; overflow: visible; background-position: 66% center; }
  .clearance-hero-panel { background: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.78) 67%, rgba(255,255,255,.30)); }
  .clearance-hero-content { min-height: auto; padding: 25px clamp(18px, 5vw, 38px) 20px; }
  .clearance-hero-brand img { width: 58px; }
  .clearance-hero-copy { margin: 32px 0 12px; }
  .clearance-hero-copy h1 { font-size: clamp(42px, 10vw, 66px); }
  .clearance-hero-description { max-width: 530px; font-size: .94rem; }
  .clearance-feature-grid { margin-top: 18px; }
  .clearance-feature { padding-top: 10px; padding-bottom: 11px; gap: 7px; }
  .clearance-feature > span { width: 42px; height: 42px; }
  .clearance-feature strong { font-size: .68rem; }
  .clearance-hero-bottom { padding-top: 8px; }
  .clearance-hero-motto { font-size: 1.05rem; }
  .privacy-inline-notice { padding: 8px 10px; }
  .clearance-login-side { padding: 24px 18px 28px; background: linear-gradient(180deg, rgba(0,49,40,.30), rgba(0,39,32,.60)); }
  .auth-card-glass { width: min(480px, 100%); padding: clamp(23px, 5vw, 34px); }
  .clearance-trust-line { max-width: 440px; }
}
@media (max-width: 460px) {
  .clearance-hero-brand { gap: 10px; }
  .clearance-hero-brand strong { font-size: 12px; }
  .clearance-hero-brand em { font-size: 8px; letter-spacing: .24em; }
  .clearance-eyebrow { font-size: .62rem; letter-spacing: .14em; }
  .clearance-hero-copy h1 { font-size: clamp(38px, 10.4vw, 49px); }
  .clearance-hero-subtitle { letter-spacing: .2em; font-size: .78rem; }
  .clearance-feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .clearance-feature strong { font-size: .59rem; }
  .clearance-feature > span { width: 36px; height: 36px; border-radius: 12px; }
  .clearance-feature .ic { width: 20px; height: 20px; }
  .privacy-inline-notice p { font-size: .67rem; }
  .clearance-login-side { padding-inline: 14px; }
  .auth-card-glass { border-radius: 21px; }
  .clearance-card-brand { margin-bottom: 19px; }
  .privacy-page-header { align-items: flex-start; }
  .privacy-page-header nav { width: 100%; }
  .privacy-document-card { padding: 22px 17px; border-radius: 17px; }
  .policy-prose { font-size: .9rem; }
  .privacy-page-shell { padding: 14px; }
}
@media (max-height: 760px) and (min-width: 781px) {
  .clearance-hero-content { padding-top: 20px; padding-bottom: 16px; }
  .clearance-hero-brand img { width: 58px; }
  .clearance-hero-copy { margin-top: 25px; margin-bottom: 15px; }
  .clearance-hero-copy h1 { font-size: clamp(44px, 4.2vw, 65px); }
  .clearance-feature-grid { margin-top: 18px; }
  .clearance-feature { padding-block: 9px; gap: 7px; }
  .clearance-feature > span { width: 42px; height: 42px; }
  .clearance-hero-motto { margin-bottom: 6px; font-size: 1rem; }
  .privacy-inline-notice { padding-block: 6px; }
  .clearance-login-side { padding-block: 16px; }
  .auth-card-glass { padding-block: 20px; }
  .clearance-card-brand { margin-bottom: 14px; }
  .clearance-card-brand img { width: 54px; height: 54px; margin-bottom: 7px; }
  .auth-card-glass .field { margin-bottom: 10px; }
  .auth-card-glass input[type=text], .auth-card-glass input[type=password] { min-height: 46px; }
  .auth-policy-links { margin-top: 13px; padding-top: 11px; }
}
@media (prefers-reduced-transparency: reduce) {
  .auth-card-glass { background: #f7fbf9; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .privacy-inline-notice { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { .privacy-inline-notice *, .auth-card-glass * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
