/* Handy Helper — Authentication Seamless Shell R4
   Presentation bridge loaded after Auth R2 + R3.1.
   Goal: authentication feels like part of the current Handy Helper workspace,
   not a second website. No backend/database styles or logic live here. */
:root{
  --hh-r4-navy:var(--navy,#082d49);
  --hh-r4-blue:var(--blue,#0076be);
  --hh-r4-gold:var(--gold,#ba8730);
  --hh-r4-ink:var(--ink,#18354b);
  --hh-r4-muted:var(--muted,#64788a);
  --hh-r4-line:var(--line,#e3e9ee);
  --hh-r4-canvas:var(--canvas,#f7f8fa);
  --hh-r4-shadow:0 26px 80px rgba(8,45,73,.18);
  --hh-r4-ease:cubic-bezier(.22,.9,.24,1);
}
body.hh-auth-r4-open{overflow:hidden}
.hh-auth-r2-overlay{
  inset:0!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:flex-end!important;
  padding:0!important;
  background:rgba(8,45,73,.22)!important;
  backdrop-filter:blur(4px) saturate(1.02)!important;
  -webkit-backdrop-filter:blur(4px) saturate(1.02)!important;
  opacity:0;
  animation:hhR4ScrimIn .22s ease forwards;
}
.hh-auth-r2-overlay.hh-auth-r4-closing{animation:hhR4ScrimOut .18s ease forwards}
.hh-auth-r2-dialog{
  display:block!important;
  grid-template-columns:none!important;
  width:min(468px,calc(100vw - 52px))!important;
  max-width:468px!important;
  min-height:100dvh!important;
  height:100dvh!important;
  margin:0!important;
  border:0!important;
  border-left:1px solid rgba(8,45,73,.08)!important;
  border-radius:28px 0 0 28px!important;
  overflow:auto!important;
  background:#fff!important;
  box-shadow:var(--hh-r4-shadow)!important;
  transform:translate3d(102%,0,0);
  animation:hhR4DrawerIn .34s var(--hh-r4-ease) forwards;
  overscroll-behavior:contain;
}
.hh-auth-r2-overlay.hh-auth-r4-closing .hh-auth-r2-dialog{animation:hhR4DrawerOut .18s ease forwards}
.hh-auth-r2-brand{display:none!important}
.hh-auth-r2-main{
  min-height:100%!important;
  padding:0!important;
  display:block!important;
  background:
    radial-gradient(circle at 100% 0,rgba(186,135,48,.07),transparent 28%),
    linear-gradient(180deg,#fff 0%,#fbfcfd 100%)!important;
}
.hh-auth-r2-card{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:92px 34px 38px!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.hh-auth-r2-close{
  position:fixed!important;
  top:22px!important;
  right:22px!important;
  z-index:100002!important;
  width:38px!important;
  height:38px!important;
  border-radius:12px!important;
  border:1px solid var(--hh-r4-line)!important;
  background:rgba(255,255,255,.94)!important;
  color:var(--hh-r4-navy)!important;
  box-shadow:0 5px 18px rgba(8,45,73,.08)!important;
  transition:transform .18s ease,background .18s ease!important;
}
.hh-auth-r2-close:hover{background:#f5f8fa!important;transform:scale(1.04)}
.hh-auth-r4-context{
  position:absolute;
  top:24px;
  left:34px;
  right:78px;
  height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  pointer-events:none;
}
.hh-auth-r4-context-mark{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
  background:#fff7e8;border:1px solid rgba(186,135,48,.22);color:var(--hh-r4-gold);
  font-weight:950;font-size:18px;box-shadow:0 4px 14px rgba(8,45,73,.05)
}
.hh-auth-r4-context-copy{min-width:0;line-height:1.05}
.hh-auth-r4-context-copy strong{display:block;color:var(--hh-r4-navy);font-size:15px;letter-spacing:-.02em}
.hh-auth-r4-context-copy small{display:block;color:var(--hh-r4-muted);font-size:10px;margin-top:4px;font-weight:750;letter-spacing:.02em}
.hh-auth-r2-head{margin-bottom:20px!important;align-items:flex-start!important}
.hh-auth-r2-head h2{font-size:31px!important;line-height:1.08!important;letter-spacing:-.045em!important;color:var(--hh-r4-navy)!important}
.hh-auth-r2-head p{font-size:13px!important;line-height:1.5!important;color:var(--hh-r4-muted)!important}
.hh-auth-r2-badge{display:none!important}
.hh-auth-r2-tabs{
  margin-bottom:16px!important;padding:3px!important;border-radius:12px!important;
  background:#f0f3f5!important;border:1px solid #e8edf0!important
}
.hh-auth-r2-tab{min-height:40px!important;border-radius:9px!important;font-size:13px!important}
.hh-auth-r2-provider{
  min-height:48px!important;height:48px!important;border-radius:12px!important;
  justify-content:flex-start!important;padding:0 15px!important;
  border-color:#dde5ea!important;background:#fff!important;
  box-shadow:none!important;font-size:13px!important
}
.hh-auth-r2-provider:hover{transform:none!important;border-color:#b9cbd7!important;background:#f9fbfc!important;box-shadow:0 5px 16px rgba(8,45,73,.06)!important}
.hh-auth-r2-divider{margin:15px 0!important}
.hh-auth-r2-email-toggle,.hh-auth-r2-action{
  min-height:48px!important;height:48px!important;border-radius:11px!important
}
.hh-auth-r2-email-toggle{background:#f3f8fc!important;border-color:#d7e5ef!important;color:#0b679f!important}
.hh-auth-r2-action{
  background:var(--hh-r4-navy)!important;border:1px solid var(--hh-r4-navy)!important;
  box-shadow:0 7px 18px rgba(8,45,73,.16)!important
}
.hh-auth-r2-action:hover{background:#0b3d61!important}
.hh-auth-r2-field{gap:5px!important}.hh-auth-r2-field label{font-size:11px!important;color:#455c6e!important}
.hh-auth-r2-field input,.hh-auth-r2-field select{
  min-height:47px!important;border-radius:10px!important;border-color:#dce4e9!important;font-size:14px!important
}
.hh-auth-r2-field input:focus,.hh-auth-r2-field select:focus{border-color:#75a8c9!important;box-shadow:0 0 0 3px rgba(0,118,190,.07)!important}
.hh-auth-r2-foot{font-size:10px!important;line-height:1.45!important;margin-top:14px!important}
.hh-auth-r2-note{font-size:10.5px!important;line-height:1.45!important;padding:10px 11px!important;margin-top:12px!important}
.hh-auth-r2-message{font-size:11px!important;border-radius:10px!important}
.hh-auth-r2-role{border-radius:12px!important;padding:13px!important}.hh-auth-r2-role-icon{border-radius:10px!important}
.hh-auth-security-row{border-radius:11px!important}
.hh-auth-r4-page-hint{
  position:fixed;left:24px;bottom:22px;z-index:99999;padding:9px 12px;border-radius:999px;
  background:rgba(255,255,255,.86);border:1px solid rgba(8,45,73,.08);color:#5d7182;
  box-shadow:0 8px 24px rgba(8,45,73,.07);font-size:11px;font-weight:750;
  opacity:0;animation:hhR4HintIn .25s .12s ease forwards;pointer-events:none
}
@keyframes hhR4DrawerIn{to{transform:translate3d(0,0,0)}}
@keyframes hhR4DrawerOut{from{transform:translate3d(0,0,0)}to{transform:translate3d(102%,0,0)}}
@keyframes hhR4ScrimIn{to{opacity:1}}
@keyframes hhR4ScrimOut{from{opacity:1}to{opacity:0}}
@keyframes hhR4HintIn{to{opacity:1}}
@media(max-width:700px){
  .hh-auth-r2-overlay{align-items:flex-end!important;justify-content:stretch!important;background:rgba(8,45,73,.16)!important;backdrop-filter:blur(2px)!important;-webkit-backdrop-filter:blur(2px)!important}
  .hh-auth-r2-dialog{
    width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:92dvh!important;
    border:0!important;border-top:1px solid rgba(8,45,73,.08)!important;border-radius:24px 24px 0 0!important;
    transform:translate3d(0,102%,0);animation:hhR4SheetIn .34s var(--hh-r4-ease) forwards;
  }
  .hh-auth-r2-overlay.hh-auth-r4-closing .hh-auth-r2-dialog{animation:hhR4SheetOut .18s ease forwards}
  .hh-auth-r2-dialog:before{content:"";display:block;position:sticky;top:8px;z-index:5;width:42px;height:4px;border-radius:999px;background:#d9e1e6;margin:8px auto -12px}
  .hh-auth-r2-card{min-height:0!important;padding:72px 20px 28px!important}
  .hh-auth-r4-context{top:24px;left:20px;right:70px}
  .hh-auth-r2-close{position:absolute!important;top:20px!important;right:18px!important}
  .hh-auth-r2-head h2{font-size:28px!important}
  .hh-auth-r4-page-hint{display:none!important}
  @keyframes hhR4SheetIn{to{transform:translate3d(0,0,0)}}
  @keyframes hhR4SheetOut{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,102%,0)}}
}
@media(max-width:390px){
  .hh-auth-r2-card{padding:68px 16px 22px!important}
  .hh-auth-r4-context{left:16px}
  .hh-auth-r2-head h2{font-size:26px!important}
  .hh-auth-r2-provider{min-height:46px!important;height:46px!important}
}
@media(prefers-reduced-motion:reduce){
  .hh-auth-r2-overlay,.hh-auth-r2-dialog,.hh-auth-r2-overlay.hh-auth-r4-closing,.hh-auth-r2-overlay.hh-auth-r4-closing .hh-auth-r2-dialog,.hh-auth-r4-page-hint{animation:none!important;opacity:1!important;transform:none!important}
}
