/* Street Legend V7.1 — account-page presentation only. No auth logic changes. */
body.sani-auth-page.sl-login-v7 .auth-panel { position:relative; }
body.sani-auth-page.sl-login-v7 .sl-auth-back {
  position:absolute; top:clamp(18px,2.5vw,34px); right:clamp(18px,2.5vw,38px);
  z-index:5; width:42px; height:42px;
  display:grid; place-items:center;
  color:#191919 !important; background:#fff !important;
  border:1px solid #e8e8e8; border-radius:50%;
  text-decoration:none; box-shadow:0 3px 16px rgba(0,0,0,.035);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.sani-auth-page.sl-login-v7 .sl-auth-back:hover {
  transform:translateX(-3px); border-color:#c2c2c2;
  box-shadow:0 5px 18px rgba(0,0,0,.08);
}
body.sani-auth-page.sl-login-v7 .sl-auth-back svg { width:20px; height:20px; }

/* Undo V7's circle + screen-reader-only label; retain the original Google SVG. */
body.sani-auth-page.sl-login-v7 .sani-google-form { width:100%; }
body.sani-auth-page.sl-login-v7 .sani-google-form .auth-google,
body.sani-auth-page.sl-login-v7 .sani-google-form .auth-google:not(:disabled) {
  display:flex !important;
  flex:1 1 auto !important;
  box-sizing:border-box;
  width:100% !important; min-width:0 !important;
  height:51px !important; min-height:51px !important;
  border:1px solid #d9d9d9 !important;
  border-radius:11px !important;
  padding:0 17px !important;
  gap:12px !important;
  background:#fff !important;
  color:#171717 !important;
  font:700 13px 'DM Sans',system-ui,sans-serif !important;
  letter-spacing:0;
  justify-content:center !important; align-items:center !important;
}
body.sani-auth-page.sl-login-v7 .sani-google-form .auth-google span {
  position:static !important; display:inline !important;
  width:auto !important; height:auto !important;
  overflow:visible !important; clip:auto !important;
  white-space:normal !important; margin:0 !important;
}
body.sani-auth-page.sl-login-v7 .sani-google-form .auth-google svg {
  display:block; width:20px; height:20px; flex:0 0 20px;
}
body.sani-auth-page.sl-login-v7 .sani-google-form .auth-google:hover:not(:disabled) {
  background:#f8f8f8 !important; border-color:#aaa !important;
  box-shadow:0 6px 16px rgba(0,0,0,.06) !important;
}

/* Server-rendered invalid login: brief visual shake; inline error stays readable. */
body.sani-auth-page.sl-login-v7 #auth-login.sl-auth-error-active .auth-form {
  animation:sl-auth-error-shake .54s ease-in-out both;
}
@keyframes sl-auth-error-shake {
  0%,100% {transform:translateX(0)}
  12%,42%,72% {transform:translateX(-7px)}
  27%,57%,87% {transform:translateX(7px)}
}
body.sani-auth-page.sl-login-v7 .sl-auth-error-toast {
  position:fixed; top:18px; right:18px; z-index:3000;
  display:flex; gap:12px; align-items:flex-start;
  max-width:min(400px,calc(100vw - 30px));
  padding:14px 17px; border:1px solid #edd8dc;
  border-left:4px solid #942741; border-radius:12px;
  color:#251b1e; background:#fff;
  box-shadow:0 16px 40px rgba(33,16,20,.16);
  font:500 13px/1.45 'DM Sans',system-ui,sans-serif;
  animation:sl-auth-toast-in .38s cubic-bezier(.22,.9,.28,1) both;
}
body.sani-auth-page.sl-login-v7 .sl-auth-error-toast svg { flex:none; color:#942741; }
body.sani-auth-page.sl-login-v7 .sl-auth-error-toast strong { display:block; font-size:13px; margin:0 0 3px; }
body.sani-auth-page.sl-login-v7 .sl-auth-error-toast p { margin:0; color:#6c5c61; }
body.sani-auth-page.sl-login-v7 .sl-auth-error-toast.is-leaving {
  animation:sl-auth-toast-out .28s ease forwards;
}
@keyframes sl-auth-toast-in {
  from{opacity:0;transform:translateY(-24px)} to{opacity:1;transform:translateY(0)}
}
@keyframes sl-auth-toast-out {
  to{opacity:0;transform:translateY(-20px)}
}

/* Mobile-only fixed cue; visible only when more account options are below fold. */
body.sani-auth-page.sl-login-v7 .sl-auth-scroll-cue {display:none;}
@media(max-width:700px) {
  body.sani-auth-page.sl-login-v7 .auth-panel .sl-auth-back {
    top:16px; right:clamp(20px,6vw,38px); width:40px; height:40px;
  }
  body.sani-auth-page.sl-login-v7 .sl-auth-scroll-cue {
    display:flex; align-items:center; gap:9px;
    position:fixed; z-index:80;
    right:max(16px, env(safe-area-inset-right));
    bottom:calc(16px + env(safe-area-inset-bottom));
    min-height:46px; padding:9px 15px;
    font:700 12px 'DM Sans',system-ui,sans-serif;
    color:#fff; background:#171717;
    border:1px solid #171717; border-radius:999px;
    box-shadow:0 12px 30px rgba(0,0,0,.2);
    cursor:pointer; opacity:0; pointer-events:none;
    transform:translateY(14px);
    transition:opacity .24s ease,transform .24s ease;
  }
  body.sani-auth-page.sl-login-v7 .sl-auth-scroll-cue.is-visible {
    opacity:1; pointer-events:auto; transform:translateY(0);
  }
  body.sani-auth-page.sl-login-v7 .sl-auth-scroll-cue svg {height:17px;width:17px; flex:none;}
  body.sani-auth-page.sl-login-v7 .sl-auth-scroll-cue:hover { background:#303030; }
  body.sani-auth-page.sl-login-v7 .sl-auth-error-toast {
    top:calc(12px + env(safe-area-inset-top));
    left:14px; right:14px; max-width:none; padding:12px 14px;
  }
}
@media(prefers-reduced-motion:reduce) {
  body.sani-auth-page.sl-login-v7 #auth-login.sl-auth-error-active .auth-form,
  body.sani-auth-page.sl-login-v7 .sl-auth-error-toast,
  body.sani-auth-page.sl-login-v7 .sl-auth-error-toast.is-leaving {animation:none!important;}
  body.sani-auth-page.sl-login-v7 .sl-auth-scroll-cue {transition:none!important;}
}
