/* ==========================================================================
   JBP & Associates — sign in.

   Built to match the Artis Law House sign-in page: the same two-panel frame,
   the same typography (Cormorant Garamond for the quote, Source Sans 3 for the
   interface), the same gold line-art drawn onto a deep panel, the same order of
   reveal. What changes is whose brand it is — the teal comes from the JBP mark,
   and the drawing is their own spiral rather than a portrait.

   Scoped under html.ui-auth so it cannot reach any other page.
   ========================================================================== */
html.ui-auth{
  --deep:#0C262C; --brand:#117C8C; --brand-h:#0C5F6C; --on-brand:#fff;
  --gold:#A8906C; --gold-dim:#8A7450; --gold-b:#C0A47C; --gold-w:#F2EBDF;
  --bg:#FFFFFF; --bg2:#FAF9F7; --sunk:#EFEBE4; --line:#E2DDD3; --line-s:#EDE9E1;
  --ink:#1B2F34; --ink2:#44585F; --ink3:#5A6D74;
  --crit:#A4433A; --crit-bg:#F7E6E4;
  --sh:0 1px 2px rgba(27,47,52,.06),0 4px 14px rgba(27,47,52,.06);
  color-scheme:light;
}
html.ui-auth,html.ui-auth body{height:100%;background:var(--bg)}
html.ui-auth body{
  margin:0;font:16px/1.55 'Source Sans 3',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--ink);-webkit-font-smoothing:antialiased;
}
html.ui-auth *,html.ui-auth *::before,html.ui-auth *::after{box-sizing:border-box}
html.ui-auth a{color:var(--brand);text-decoration:none;font-weight:600}
html.ui-auth a:hover{color:var(--brand-h);text-decoration:underline}
html.ui-auth :focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}

/* ---- frame -------------------------------------------------------------- */
.wrap{min-height:100%;display:flex;flex-direction:column}
.form-side{flex:1;display:flex;align-items:center;justify-content:center;padding:32px 20px}
.box{width:100%;max-width:400px}
.logo{display:block;width:230px;max-width:76%;height:auto;margin-bottom:30px}
.form-side h1{font-size:26px;font-weight:700;letter-spacing:-.015em;margin:0;color:var(--ink)}
.lede{color:var(--ink3);margin:6px 0 22px;font-size:15.5px}

/* ---- tabs --------------------------------------------------------------- */
.tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;background:var(--sunk);
  border-radius:8px;margin-bottom:20px}
.tabs button{border:0;background:none;padding:10px;border-radius:6px;
  font:600 14.5px 'Source Sans 3',sans-serif;color:var(--ink3);cursor:pointer}
.tabs button[aria-selected="true"]{background:var(--bg);color:var(--brand);box-shadow:var(--sh)}

/* ---- fields ------------------------------------------------------------- */
.fld{margin-bottom:16px}
.fld label{display:flex;justify-content:space-between;align-items:baseline;
  font-size:14px;font-weight:600;color:var(--ink2);margin-bottom:7px}
.fld label a{font-size:13.5px;font-weight:600}
.inp{width:100%;height:46px;border:1px solid var(--line);border-radius:8px;background:var(--bg2);
  color:var(--ink);padding:0 13px;font:16px 'Source Sans 3',sans-serif}
.inp::placeholder{color:var(--ink3)}
.inp:focus{outline:none;border-color:var(--gold);background:var(--bg);
  box-shadow:0 0 0 3px rgba(168,144,108,.2)}
.pw{position:relative}
.pw .inp{padding-right:46px}
.eye{position:absolute;right:5px;top:5px;width:36px;height:36px;border:0;background:none;
  color:var(--ink3);border-radius:6px;cursor:pointer;display:grid;place-items:center}
.eye svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7}
.hint{font-size:14px;color:var(--ink3);margin:7px 0 0}

.btn{display:flex;width:100%;height:48px;align-items:center;justify-content:center;gap:8px;
  border-radius:8px;font:600 16px 'Source Sans 3',sans-serif;cursor:pointer;
  border:1px solid var(--line);background:var(--bg);color:var(--ink)}
.btn-pri{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.btn-pri:hover{background:var(--brand-h);border-color:var(--brand-h)}

.alert{display:flex;gap:9px;padding:11px 13px;border-radius:8px;font-size:14px;
  line-height:1.45;margin-bottom:18px}
.alert svg{width:17px;height:17px;flex:none;margin-top:2px;stroke:currentColor;fill:none;stroke-width:1.8}
.alert-err{background:var(--crit-bg);color:var(--crit)}
.alert-info{background:var(--gold-w);color:var(--gold-dim)}
.foot{margin-top:26px;padding-top:16px;border-top:1px solid var(--line-s);display:flex;
  justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13.5px;color:var(--ink3)}
.hide{display:none}

/* ---- brand panel -------------------------------------------------------- */
.brand-side{display:none;position:relative;overflow:hidden;color:#D3E3E9;padding:40px 48px 34px;
  flex-direction:column;align-items:center;gap:14px;
  background:radial-gradient(60% 46% at 50% 60%,rgba(201,170,120,.14),transparent 72%),
             radial-gradient(130% 70% at 50% -10%,#15424C,transparent 62%),var(--deep)}
.brand-side::after{content:"";position:absolute;inset:0;opacity:.07;pointer-events:none;
  background-image:linear-gradient(var(--gold-b) 1px,transparent 1px),
                   linear-gradient(90deg,var(--gold-b) 1px,transparent 1px);
  background-size:54px 54px;
  -webkit-mask-image:radial-gradient(ellipse at 50% 30%,#000,transparent 70%);
  mask-image:radial-gradient(ellipse at 50% 30%,#000,transparent 70%)}
.brand-side>*{position:relative;z-index:1}

.quote{width:100%;margin:0;text-align:center;
  font-family:'Cormorant Garamond',Georgia,'Times New Roman',serif;font-size:23px;color:#F3EBDB}
.qmark{display:block;height:.62em;font-size:3.1em;line-height:1;color:#C9AE84;font-style:normal;opacity:.9}
.quote blockquote{margin:0}
.ql{margin:0;line-height:1.5;font-style:italic;font-weight:500;letter-spacing:.003em}
.quote figcaption{margin-top:10px;font:600 12px 'Source Sans 3',sans-serif;letter-spacing:.24em;
  text-transform:uppercase;color:#C9AE84}
.quote figcaption::before,.quote figcaption::after{content:"";display:inline-block;width:28px;height:1px;
  background:currentColor;opacity:.6;vertical-align:middle;margin:0 12px}

.stage{flex:1;min-height:0;width:100%;position:relative}
.art{position:absolute;inset:4px 0;margin:auto;max-width:540px;max-height:540px}
.art svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.lines{filter:drop-shadow(0 0 1.5px rgba(246,214,150,.7)) drop-shadow(0 0 7px rgba(214,168,92,.45))}
.lines path{fill:none;stroke:#EBCF98;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}
.lines circle{fill:none;stroke:#C9AE84;stroke-width:1.2;stroke-opacity:.8}

.ofc{text-align:center;font-family:'Cormorant Garamond',Georgia,serif;font-size:21px;
  font-weight:500;color:#EDE4D3;letter-spacing:.02em}
.ofc b{display:block;font:600 11.5px 'Source Sans 3',sans-serif;letter-spacing:.26em;
  text-transform:uppercase;color:#C9AE84;margin-bottom:3px}
.ofc i{font-style:normal;color:#C9AE84;margin:0 .45em}

/* ---- the reveal, in the same order as Artis Law House ------------------- */
@keyframes fadein{to{opacity:1}}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes draw{to{stroke-dashoffset:0}}
.anim .qmark,.anim .quote figcaption,.anim .ofc{opacity:0}
.anim .ql{opacity:0}
.play .qmark{animation:fadein 1s ease .05s forwards}
.play .ql{animation:rise 1.1s cubic-bezier(.4,0,.2,1) var(--qd,.25s) forwards}
.play .ql:nth-of-type(2){--qd:.95s}
.play .quote figcaption{animation:fadein 1s ease 1.9s forwards}
.play .ofc{animation:rise 1s ease 2.6s forwards}
.play .lines path{stroke-dasharray:var(--len,900);stroke-dashoffset:var(--len,900);
  animation:draw 2.4s cubic-bezier(.5,.1,.35,1) var(--dl,0s) forwards}
.play .lines circle{stroke-dasharray:1400;stroke-dashoffset:1400;
  animation:draw 2.8s ease 1.1s forwards}
@media (prefers-reduced-motion:reduce){
  .anim .qmark,.anim .quote figcaption,.anim .ofc,.anim .ql{opacity:1}
  .play .lines path,.play .lines circle{stroke-dashoffset:0;animation:none}
}

/* ---- two panels, exactly where Artis Law House puts the break ----------- */
@media (min-width:1024px){
  .wrap{flex-direction:row}
  .form-side{flex:1 1 45%}
  .brand-side{display:flex;flex:1 1 55%}
}
@media (min-width:1024px) and (max-height:700px){
  .ofc{display:none}
  .brand-side{padding-top:28px}
}
