/* Account pages (sign in, sign up and the rest), shared form controls and the header account
   control. Tokens only: no colour, size or weight is defined here that tokens.css does not own.
   Colour pairs are checked by tests/contrast.test.mjs (UI-SPEC pairs 24 to 33). */

/* ---------- auth layout ---------- */
.auth-main{
  flex:1;
  width:100%;
  padding:var(--space-2xl) var(--edge) var(--section-y);
  display:flex;
  flex-direction:column;
  gap:var(--space-md);
}
.auth-main > *{max-width:var(--measure)}
.auth-main h1{
  font-family:var(--font-display);
  font-weight:400;
  font-size:var(--title-compact);
  line-height:var(--title-line);
  letter-spacing:.01em;
  text-transform:uppercase;
}
.auth-panel{
  background:var(--ink-soft);
  color:var(--paper);
  border-radius:12px;
  border:1.5px solid var(--paper);
  box-shadow:7px 7px 0 var(--accent);
  padding:var(--space-lg);
  display:flex;
  flex-direction:column;
  gap:var(--space-md);
}
.auth-panel form{display:flex;flex-direction:column;gap:var(--space-md)}
/* The choice a booking link shows first (quick 261027-j44, UX-07 and UX-08): Create my account on band-ink keeps the global chartreuse ring. */
.first-time{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-sm) var(--space-md)}
.first-time-q{margin:0;font-weight:var(--label-weight)}
.returning-note{margin:0}
.returning-note a{color:var(--paper);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;display:inline-block;padding-block:12px;margin-block:-12px}
.returning-note a:hover{color:var(--accent-text-on-ink)}
.field{display:flex;flex-direction:column}
.field-row{display:flex;flex-direction:column;gap:var(--space-md)}
@media (min-width:400px){
  .auth-panel{padding:var(--space-xl)}
}
@media (min-width:768px){
  .auth-main{padding-top:var(--space-3xl)}
  .field-row{flex-direction:row}
  .field-row .field{flex:1}
}

/* ---------- form controls ---------- */
input[type="password"],input[type="tel"],input[type="url"],input[type="date"],input[type="number"],select{
  width:100%;
  min-height:var(--field-h);
  padding:0 var(--space-md);
  font-family:var(--font-body);
  font-size:var(--body-size);
  line-height:var(--body-line);
  background-color:var(--paper);
  color:var(--ink);
  border:2px solid var(--ink);
  border-radius:var(--space-sm);
}
select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:var(--space-2xl);
  background-image:
    linear-gradient(45deg,transparent 50%,var(--ink) 50%),
    linear-gradient(135deg,var(--ink) 50%,transparent 50%);
  background-position:calc(100% - 22px) 50%,calc(100% - 16px) 50%;
  background-size:6px 6px,6px 6px;
  background-repeat:no-repeat;
}
.auth-panel input[aria-invalid="true"],.auth-panel select[aria-invalid="true"]{border-color:var(--coral-light)}

.checkbox-field{display:flex;align-items:flex-start;gap:var(--space-md)}
.checkbox-field label{
  display:flex;
  align-items:center;
  gap:var(--space-md);
  min-height:48px;
  margin-bottom:0;
  font-size:var(--body-size);
  font-weight:var(--body-weight);
  line-height:var(--body-line);
  cursor:pointer;
}
.checkbox-field input[type="checkbox"]{
  flex:none;
  width:24px;
  height:24px;
  accent-color:var(--accent);
}

.password-field{position:relative}
.password-field input{padding-right:72px}
.password-toggle{
  position:absolute;
  right:0;
  bottom:0;
  width:64px;
  height:var(--field-h);
  background:transparent;
  border:0;
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  line-height:var(--label-line);
  text-decoration:underline;
  cursor:pointer;
}
.password-toggle:focus-visible{outline-color:var(--ink);outline-offset:-3px}

.field-hint{
  margin-top:var(--space-xs);
  font-size:var(--label-size);
  font-weight:var(--hint-weight);
  line-height:var(--label-line);
  color:var(--charcoal);
}
/* A11Y-01: pale hint text only on the dark auth panel and ink bands; paper and white cards keep charcoal. */
.auth-panel .field-hint,.band-ink .field-hint{color:rgba(250,249,245,.75)}
.field-hint:empty{display:none}
.field-hint button{
  min-height:48px;
  padding:0 var(--space-sm);
  background:transparent;
  border:0;
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  text-decoration:underline;
  cursor:pointer;
}
.auth-panel .field-hint button,.band-ink .field-hint button{color:var(--paper)}
.auth-panel .field-hint button:hover,.band-ink .field-hint button:hover{color:var(--accent-text-on-ink)}
.field-error,.form-error{
  margin-top:var(--space-xs);
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  line-height:var(--label-line);
  color:var(--rust);
}
.form-error{padding:var(--space-md);border:2px solid var(--rust);border-radius:var(--space-sm)}
/* A11Y-02: rust on light surfaces, coral-light on the dark auth panel and ink bands (as #interest-status does). */
.auth-panel .field-error,.auth-panel .form-error,.band-ink .field-error,.band-ink .form-error{color:var(--coral-light);border-color:var(--coral-light)}
.form-status{
  padding-left:var(--space-md);
  border-left:4px solid var(--accent);
  font-size:var(--label-size);
  font-weight:var(--hint-weight);
  line-height:var(--label-line);
}
.form-status:empty{display:none}

.auth-links{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  line-height:var(--label-line);
}
/* Cross links (sign in, sign up, forgot): 44px tall targets, padded, the type unchanged (UI review phase 4). */
.auth-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--paper);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}
.auth-links a:hover{color:var(--accent-text-on-ink)}
.auth-note{font-size:var(--label-size);font-weight:var(--hint-weight);line-height:var(--label-line)}
.auth-note a{color:var(--paper);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.auth-note a:hover{color:var(--accent-text-on-ink)}

/* "Link not working?" paste box on the link pages: open with no token, folded once the script has one. */
.link-paste summary{
  cursor:pointer;
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  line-height:var(--label-line);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:4px;
}
.link-paste[open] summary{margin-bottom:var(--space-sm)}

.auth-main .btn-primary{width:100%}
@media (min-width:768px){
  .auth-main .btn-primary{width:auto}
}

/* ---------- notices ---------- */
.notice-line{
  margin:var(--space-md) var(--space-lg) 0;
  padding-left:var(--space-md);
  border-left:4px solid var(--accent);
  color:var(--paper);
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  line-height:var(--label-line);
}

/* ---------- unconfirmed-email banner ---------- */
.confirm-banner{
  display:flex;
  flex-direction:column;
  gap:var(--space-md);
  padding:var(--space-md) var(--space-lg);
  background:var(--paper);
  color:var(--ink);
  border-left:4px solid var(--accent);
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  line-height:var(--label-line);
}
.confirm-banner p{margin:0}
.confirm-banner button{
  min-height:48px;
  padding:0 var(--space-lg);
  background:var(--paper);
  color:var(--ink);
  border:2px solid var(--ink);
  border-radius:var(--space-sm);
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.confirm-banner button:hover{background:var(--ink);color:var(--paper)}
.confirm-banner :focus-visible{outline:3px solid var(--ink);outline-offset:2px}
@media (min-width:768px){
  .confirm-banner{flex-direction:row;align-items:center;justify-content:space-between}
}

/* ---------- button-page result ---------- */
.auth-result{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-md)}
.auth-result h2{margin:0}
.auth-result p{margin:0}

/* ---------- My Account ---------- */
.account-main{max-width:none}
.account-main h1{margin:0}
.account-cards{display:flex;flex-direction:column;gap:var(--space-lg)}
/* Every card on the card padding token (quick 261111-wph review round): 24 on phones, 32 from 768. */
.auth-panel.account-card{padding:var(--card-pad)}
.account-card h2{
  margin:0;
  font-family:var(--font-display);
  font-weight:400;
  font-size:var(--h-card);
  line-height:var(--heading-line);
  letter-spacing:.01em;
  text-transform:uppercase;
}
.account-card p{margin:0}
.account-email{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-sm);font-weight:800}
.badge-unconfirmed{
  display:inline-block;
  padding:var(--space-xs) var(--space-sm);
  background:var(--paper);
  color:var(--ink);
  border-radius:var(--space-xs);
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  line-height:var(--label-line);
}
.account-pending{display:flex;flex-direction:column;gap:var(--space-md)}
.account-pending-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-md)}
.account-pending-actions form{display:block}
.btn-text{
  min-height:48px;
  padding:0 var(--space-md);
  background:transparent;
  border:0;
  color:var(--paper);
  font:inherit;
  font-size:var(--label-size);
  font-weight:var(--label-weight);
  text-decoration:underline;
  cursor:pointer;
}
.btn-text:hover{color:var(--accent-text-on-ink)}
.btn-text:focus-visible{outline:3px solid var(--accent-text-on-ink);outline-offset:2px}
/* Phones: the one button of each account card is full width under its fields (quick 261111-wph review round); from 768
   it is its natural width at the left. City and State, First and Last name share a row from 360 on the account page. */
.account-card .btn-primary,.account-card .btn-secondary{width:100%;justify-content:center}
@media (min-width:768px){
  .account-card .btn-primary,.account-card .btn-secondary{width:auto;align-self:flex-start}
}
@media (min-width:360px){
  .account-card .field-row{flex-direction:row}
  .account-card .field-row .field{flex:1;min-width:0}
}

/* ---------- welcome card ---------- */
.welcome-main{max-width:560px}
.welcome-main h1{
  font-size:var(--display-size);
  line-height:var(--display-line);
}
.welcome-main .auth-panel h2{
  margin:0;
  font-family:var(--font-display);
  font-weight:400;
  font-size:var(--h-card);
  line-height:var(--heading-line);
  letter-spacing:.01em;
  text-transform:uppercase;
}
.welcome-main .auth-panel p{margin:0}

/* ---------- contact message box ---------- */
textarea{
  width:100%;
  min-height:192px;
  padding:var(--space-md);
  font-family:var(--font-body);
  font-size:var(--body-size);
  line-height:var(--body-line);
  background-color:var(--paper);
  color:var(--ink);
  border:2px solid var(--ink);
  border-radius:var(--space-sm);
  resize:vertical;
}
.auth-panel textarea[aria-invalid="true"]{border-color:var(--coral-light)}
.auth-panel[hidden]{display:none}

/* ---------- UI overhaul (spec 2026-10-17 §6): a photo panel beside the account card on wide screens ---------- */
.auth-photo{display:none}
@media (min-width:900px){
  .auth-main{display:grid;grid-template-columns:1fr minmax(320px,480px);column-gap:var(--space-2xl);align-content:start}
  .auth-main > *{grid-column:2}
  .auth-main > .auth-photo{display:block;grid-column:1;grid-row:1 / span 12;align-self:start}
  .auth-photo img{width:100%;height:560px;object-fit:cover;border:1.5px solid var(--paper);border-radius:12px;transform:rotate(-1.5deg)}
}
/* My Account (quick 261111-wph): one column of cards on the page edge under the title, at the reading measure. The photo
   panel stays on the sign-in, sign-up and welcome cards only. */
@media (min-width:900px){
  .auth-main.account-main{display:flex}
  .auth-main.account-main>.auth-photo{display:none}
}
