/* Salon login (templates/login.html), centered on white: the homepage's type (Montserrat), ink, gold and 3px controls.
   The internal admin login keeps login.css. */
:root{
  --ink:#222723; --muted:#5d625c; --line:#d9dcd4; --gold:#c5a662; --gold-ink:#876b2f; --radius:3px;
}
*{box-sizing:border-box;}
html,body{margin:0;}
body.auth{
  display:flex; flex-direction:column; min-height:100vh;
  font-family:"Montserrat","Segoe UI",-apple-system,Arial,sans-serif; color:var(--ink); background:#fff;
}
a{color:var(--ink);}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--gold-ink);outline-offset:3px;}

.auth-bar,.auth-foot{width:min(1200px,calc(100% - 48px)); margin:0 auto;}
.auth-bar{display:flex; align-items:center; justify-content:space-between; gap:16px; height:84px;}
.auth-brand{display:inline-flex; align-items:center; gap:10px; text-decoration:none;}
.auth-brand__logo{height:40px; width:auto;}
.auth-brand__pos{font-weight:300; font-size:1.35rem; letter-spacing:.08em; color:#111827;}
.auth-lang{font-size:.875rem; color:var(--muted); white-space:nowrap;}
.auth-lang a{text-decoration:none; color:var(--muted);}
.auth-lang a.is-active{color:var(--ink); font-weight:600; text-decoration:underline; text-underline-offset:4px;}

.auth-main{flex:1; display:flex; align-items:center; justify-content:center; padding:40px 24px;}
.auth-card{
  width:100%; max-width:580px; display:flex; flex-direction:column; padding:44px 40px 36px;
  border:1px solid var(--line); border-radius:6px; background:#fff; box-shadow:0 18px 44px rgba(34,34,34,.08);
}
.auth-card h1{margin:0; font-size:2rem; font-weight:500; letter-spacing:-.045em; line-height:1.15; text-align:center; text-wrap:balance;}
.auth-sub{margin:12px 0 28px; color:var(--muted); line-height:1.6; text-align:center; text-wrap:balance;}
.auth-note{margin:-12px 0 24px; padding:12px 14px; border-left:3px solid var(--gold); background:#faf6ec; font-size:.9rem; line-height:1.5;}
.auth-error{margin:-8px 0 24px; padding:12px 14px; border-left:3px solid #b42318; background:#fdf1f0; color:#7a1a12; font-size:.9rem; line-height:1.5;}
.auth-notice{margin:-8px 0 24px; padding:12px 14px; border-left:3px solid var(--ink); background:#f6f6f3; font-size:.9rem; line-height:1.5;}

.auth-card label{display:block; margin:0 0 8px; font-size:.875rem; font-weight:600;}
.auth-label-row{display:flex; justify-content:space-between; align-items:baseline; gap:12px;}
.auth-label-row a{font-size:.8125rem; font-weight:600; color:var(--gold-ink);}
.auth-card input{
  width:100%; min-height:52px; margin:0 0 22px; padding:12px 14px;
  border:1px solid var(--line); border-radius:var(--radius); font:inherit; font-size:1rem; color:var(--ink); background:#fff;
}
.auth-card input:focus{border-color:var(--ink); outline:none; box-shadow:0 0 0 3px rgba(197,166,98,.35);}
.auth-card input[aria-invalid="true"]{border-color:#b42318;}
.auth-card input[aria-invalid="true"]:focus{box-shadow:0 0 0 3px rgba(180,35,24,.18);}
/* Filled in by the page's script while Caps Lock is on in a password field. */
.auth-caps{margin:-14px 0 18px; font-size:.8125rem; font-weight:600; color:#7a4b00;}
.auth-caps:empty{display:none;}
.auth-pwd{position:relative;}
.auth-pwd input{padding-right:72px;}
.auth-pwd button{
  position:absolute; top:0; right:0; height:52px; padding:0 16px; border:0; background:none;
  font:inherit; font-size:.8125rem; font-weight:600; color:var(--muted); cursor:pointer;
}
/* "Forgot password?" links here; the line shows only while it's the URL's #target. */
.auth-forgot{display:none; margin:-10px 0 22px; font-size:.875rem; color:var(--muted); line-height:1.5;}
.auth-forgot:target{display:block;}
/* "Remember me": the box and its words on one line, the box in the Log in button's black. */
.auth-card .auth-remember{display:flex; align-items:center; gap:10px; margin:-8px 0 22px; font-weight:500; cursor:pointer;}
.auth-card .auth-remember input{flex:none; width:20px; height:20px; min-height:0; margin:0; accent-color:#111; cursor:pointer;}
.auth-card .auth-remember input:focus{box-shadow:none;}
.auth-submit{
  display:flex; align-items:center; justify-content:center; min-height:52px; margin-top:6px; border:0; border-radius:var(--radius);
  background:#111; color:#fff; font:inherit; font-size:1rem; font-weight:600; text-decoration:none; cursor:pointer;
}
.auth-submit:hover{background:#2b2b2b;}
.auth-submit:disabled{background:#2b2b2b; opacity:.75; cursor:progress;}
.auth-quiet{margin-top:14px; width:100%; min-height:48px; border:1px solid var(--line); border-radius:var(--radius); background:#fff; font:inherit; font-weight:600; color:var(--muted); cursor:pointer;}
/* Pinned to the bottom of the card, under a rule, so the space the taller check-in panel leaves on the salon tab
   sits above it instead of under it. */
.auth-alt{margin:auto 0 0; padding-top:20px; border-top:1px solid var(--line); font-size:.9rem; color:var(--muted); text-align:center;}
#login-panel-salon .auth-submit{margin-bottom:24px;}
.auth-alt a{font-weight:600; color:var(--ink);}

.auth-foot{display:flex; flex-wrap:wrap; justify-content:center; gap:6px 20px; padding:20px 0 28px; border-top:1px solid var(--line); font-size:.8125rem; color:var(--muted); line-height:1.7;}
.auth-foot__group{display:flex; flex-wrap:wrap; justify-content:center; gap:6px 20px;}
.auth-foot__group > *{white-space:nowrap;}
.auth-foot a{color:var(--muted);}

/* Salon Account | iPad Check-In: a two-way switch across the top of the card, the active side in black like the
   Log in button. */
.auth-switch{display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:-12px -8px 32px; padding:4px; border:1px solid var(--line); border-radius:6px; background:#f6f6f3;}
.auth-switch button{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:46px; padding:0 12px;
  border:0; border-radius:4px; background:none; font:inherit; font-size:.9375rem; font-weight:600; color:var(--muted); white-space:nowrap; cursor:pointer;
}
.auth-switch button:hover{color:var(--ink); background:#ecece7;}
.auth-switch button[aria-selected="true"]{background:#111; color:#fff;}
.auth-switch svg{width:1.05rem; height:1.05rem; flex:none;}
.auth-card form{display:flex; flex-direction:column;}

/* Both panels share one grid cell, so the card is always as tall as the taller one and the switch doesn't move
   when you change tabs. The hidden panel keeps its space but stays invisible and out of the tab order. */
.auth-panels{display:grid;}
.auth-panels > section{grid-area:1/1; display:flex; flex-direction:column;}
.auth-panels > section[hidden]{display:flex; visibility:hidden;}
.auth-panels form{flex:1;}

/* Phones: the card's frame goes, so the form uses the full width. */
@media (max-width:560px){
  .auth-bar,.auth-foot{width:calc(100% - 40px);}
  .auth-bar{height:68px;}
  .auth-brand__logo{height:30px;}
  .auth-brand__pos{font-size:1.05rem;}
  .auth-main{align-items:flex-start; padding:24px 20px 40px;}
  .auth-card{padding:0; border:0; box-shadow:none;}
  .auth-card h1{font-size:1.75rem;}
  .auth-switch{margin:0 0 28px;}
  .auth-switch button{font-size:.875rem; gap:6px; padding:0 8px;}
}
