/* /account premium sign-in (Codex login-redesign concept #6 "Poseidon / customer account"; Kenneth 2026-11-13 "all approved").
   Presentation only: js/account.js, the form hooks (acct__form, contact, company, acct__done, form__err), the API and every
   message are unchanged. The site is dark-only, so there is one theme. Art: assets/art/account-hero(.webp|-m.webp). */
.acct-page { --acct-blue: #70B5FF; --acct-panel: rgba(17,23,36,.94); --acct-edge: #3C4659; --acct-field: #0B101B; --acct-text: #F5F3ED; --acct-muted: #B8BFCE;
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: #050B14; }

/* art: full viewport on desktop (trident on the right), a band at the top on tablet / phone */
.acct-art { position: absolute; inset: 0 0 auto 0; height: 100vh; min-height: 720px; overflow: hidden; z-index: 0; pointer-events: none; }
.acct-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
.acct-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,11,20,.97) 0%, rgba(5,11,20,.9) 30%, rgba(5,11,20,.45) 50%, rgba(5,11,20,0) 66%),
              linear-gradient(180deg, rgba(5,11,20,0) 70%, #050B14 100%); }

.acct-page .legal__top { position: relative; z-index: 2; border-bottom: 0; padding-top: 22px; }
.acct-page .brand { color: var(--acct-text); }
.acct-page .brand__mark { width: 40px; height: 40px; }
.acct-brand__text { display: grid; gap: 3px; line-height: 1; }
.acct-brand__text .brand__name { font-size: 17px; }
.acct-brand__sub { font: 600 10px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--acct-muted); }

.acct-page .acct { position: relative; z-index: 1; flex: 1; width: auto; margin: 0; padding: clamp(24px, 6vh, 72px) var(--gutter) 64px;
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); grid-template-areas: "panel intro" "links intro"; column-gap: clamp(40px, 8vw, 140px); align-content: start; color: var(--acct-text); }

/* right side: god title + statement over the art (desktop) */
.acct__intro { grid-area: intro; align-self: start; min-height: min(68vh, 620px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 0 0 8px; min-width: 0; }
.acct__title { margin: 0; font: 300 clamp(3.4rem, 5.6vw, 4.6rem)/1 var(--font-display); color: #FFFCF6; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0,0,0,.65); }
.acct__statement { margin: 0; font: 300 clamp(2.4rem, 4.2vw, 3.6rem)/1.08 var(--font-display); color: #FFFCF6; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0,0,0,.8), 0 0 2px rgba(0,0,0,.6); }
.acct__sub { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: #E9EDF5; text-shadow: 0 1px 10px rgba(0,0,0,.85); }
.acct__say, .acct__title { position: relative; isolation: isolate; width: fit-content; max-width: 30rem; }
/* veils: the white words sit on a soft dark backing so they stay readable over the bright spray and the trident (measured, see the notes) */
.acct__say::before, .acct__title::before { content: ""; position: absolute; inset: -30px -40px; z-index: -1; border-radius: 48px;
  background: rgba(3,8,15,.62); filter: blur(22px); }

/* the sign-in panel */
.acct__panel { grid-area: panel; position: relative; background: var(--acct-panel); border: 1px solid var(--acct-edge); border-radius: 24px; padding: 30px 26px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.acct__panel::before { content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--acct-blue), transparent); opacity: .8; }
.acct__eyebrow { margin: 0 0 12px; font: 700 10px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--acct-blue); }
.acct-page .acct h1 { margin: 0 0 10px; font: 400 clamp(2rem, 3vw, 2.4rem)/1.1 var(--font-display); color: var(--acct-text); }
.acct-page .acct__lede { margin: 0 0 24px; font-size: 15px; line-height: 1.55; color: var(--acct-muted); }

.acct-page .acct__form { padding: 0; border: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; gap: 16px; }
.acct-page .acct__form label { gap: 8px; font: 600 13px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; color: var(--acct-text); }
.acct-page .acct__form input { height: 52px; padding: 0 16px; border: 1px solid var(--acct-edge); border-radius: 12px; background: var(--acct-field); color: var(--acct-text); font-size: 16px; }
.acct-page .acct__form input::placeholder { color: #7D8597; }
.acct-page .acct__form input:focus { border-color: var(--acct-blue); box-shadow: 0 0 0 3px rgba(112,181,255,.22); }
.acct-page .acct__form .btn { min-height: 52px; margin-top: 4px; padding: 0 20px; border-radius: 12px; border-color: var(--acct-blue); background: var(--acct-blue); color: #08111D;
  font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 700; justify-content: center; }
.acct-page .acct__form .btn::after { background: #A9D3FF; }
.acct-page .acct__form .btn:hover { color: #08111D; border-color: #A9D3FF; }
.acct-page .acct__form .btn:focus-visible { outline: 2px solid #FFFCF6; outline-offset: 3px; }
.acct-page .acct__form .btn:disabled { opacity: .7; cursor: progress; }
.acct-page .acct__hint { margin: 0; font-size: 14px; color: var(--acct-muted); }
.acct-page .acct__done { border-color: rgba(112,181,255,.5); background: rgba(112,181,255,.1); color: var(--acct-text); }
.acct-page .acct__form .form__err { color: #FFB4A3; }

.acct__links { grid-area: links; padding: 0 4px; }
.acct-page .acct__open { margin: 22px 0 0; font-size: 15px; color: var(--acct-muted); }
.acct-page .acct__open a { color: #A9D3FF; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.acct-page .acct__help { margin: 10px 0 0; font-size: 15px; color: var(--acct-muted); }
.acct-page .acct__help a { color: #A9D3FF; text-decoration: underline; text-underline-offset: 3px; }

.acct-page .legal__foot { position: relative; z-index: 1; border-top-color: rgba(255,255,255,.06); }

/* tablet: art band on top, title over it, panel overlapping the art's base */
@media (max-width: 1023px) {
  .acct-art { height: 520px; min-height: 0; }
  .acct-art img { object-position: center 30%; }
  .acct-art::after { background: linear-gradient(180deg, rgba(5,11,20,.55) 0%, rgba(5,11,20,.1) 30%, rgba(5,11,20,.35) 62%, #050B14 100%); }
  .acct-page .acct { grid-template-columns: minmax(0, 512px); grid-template-areas: "intro" "panel" "links"; justify-content: center; padding-top: clamp(150px, 24vw, 230px); }
  .acct__intro { gap: 0; padding: 0 2px 24px; min-height: 0; }
  .acct__statement { display: none; }   /* the two-line statement is desktop-only, as in the concept */
  .acct__say { max-width: none; }
  .acct-page .legal__top { background: linear-gradient(180deg, rgba(5,11,20,.86) 0%, rgba(5,11,20,.6) 70%, rgba(5,11,20,0) 100%); }
  .acct__sub { display: none; }   /* the panel's lede already says it on tablet / phone */
}
/* phone */
@media (max-width: 599px) {
  .acct-art { height: 360px; }
  .acct-page .acct { padding: 96px 20px 48px; }
  .acct__title { font-size: 3.2rem; }
  .acct__intro { padding-bottom: 22px; }
  .acct__panel { padding: 26px 22px 22px; border-radius: 22px; }
}
@media (max-width: 359px) { .acct-brand__text .brand__name { display: none; } }
@media (prefers-reduced-motion: reduce) { .acct-page .acct__form .btn::after { transition: none; } }
