:root{
  --sh-yellow:#f5c400;
  --sh-yellow-soft:#fff7cc;
  --sh-ink:#11130f;
  --sh-text:#252821;
  --sh-muted:#73786f;
  --sh-line:#e8e9e3;
  --sh-surface:#ffffff;
  --sh-page:#f4f5f0;
  --sh-soft:#f8f9f5;
  --sh-success:#1d7a4c;
  --sh-danger:#b43636;
  --sh-radius:22px;
  --sh-shadow:0 26px 70px rgba(18,20,16,.09);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
html{background:var(--sh-page)}
body.sh-auth-page{
  min-height:100svh;
  overflow-x:hidden;
  background:var(--sh-page);
  color:var(--sh-text);
  font-family:"Tajawal",Tahoma,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body.sh-auth-page.is-ltr{font-family:"Inter",Arial,sans-serif}
a{color:inherit}
button,input{font:inherit}
button{cursor:pointer}
svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}

/* ===== First-time language gate ===== */
.sh-language-gate{
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:max(22px,env(safe-area-inset-top)) 18px max(22px,env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(17,19,15,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(17,19,15,.025) 1px,transparent 1px),
    var(--sh-page);
  background-size:34px 34px;
}
.sh-language-card{
  width:min(100%,610px);
  padding:34px;
  background:#fff;
  border:1px solid rgba(17,19,15,.075);
  border-radius:30px;
  box-shadow:var(--sh-shadow);
}
.sh-language-brand{display:flex;justify-content:center;margin-bottom:22px}
.sh-language-emblem{
  width:68px;height:68px;margin:0 auto 20px;padding:18px;border-radius:20px;
  color:var(--sh-ink);background:var(--sh-yellow);
}
.sh-language-copy{text-align:center;margin-bottom:28px}
.sh-language-copy>span{display:block;font-size:11px;font-weight:800;letter-spacing:.18em;color:#9a7d00;margin-bottom:10px}
.sh-language-copy h1{display:grid;gap:3px;margin:0 0 10px;color:var(--sh-ink);font-size:clamp(29px,5vw,42px);line-height:1.13}
.sh-language-copy h1 b:first-child{font-family:"Tajawal",Tahoma,sans-serif}
.sh-language-copy h1 b:last-child{font-family:"Inter",Arial,sans-serif;font-size:.66em;font-weight:700;color:#5e625a}
.sh-language-copy p{display:grid;gap:4px;margin:0;color:var(--sh-muted);font-size:13px;line-height:1.7}
.sh-language-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sh-language-options a{
  min-height:92px;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:12px;
  padding:16px;border:1px solid var(--sh-line);border-radius:18px;background:#fff;text-decoration:none;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.sh-language-options a:hover,.sh-language-options a:focus-visible{transform:translateY(-2px);border-color:#d8ba2e;background:#fffdf2;box-shadow:0 12px 26px rgba(17,19,15,.07);outline:none}
.sh-language-code{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:var(--sh-soft);font-weight:900;color:var(--sh-ink)}
.sh-language-options strong{display:block;font-size:15px;color:var(--sh-ink);margin-bottom:3px}
.sh-language-options small{display:block;font-size:10.5px;color:var(--sh-muted);line-height:1.35}
.sh-language-options b{font-size:20px;color:#a88a00}
.sh-language-foot{display:block;text-align:center;margin-top:20px;color:#979b94;font-size:10.5px}

/* ===== Main auth split shell ===== */
.sh-auth-shell{min-height:100svh;display:grid;grid-template-columns:minmax(500px,46%) minmax(0,54%);background:var(--sh-page)}
.sh-auth-visual{
  position:relative;overflow:hidden;min-height:100svh;padding:58px clamp(38px,4vw,72px) 36px;
  background:#151711;color:#fff;
}
.sh-auth-visual:before{
  content:"";position:absolute;inset:0;background:linear-gradient(145deg,rgba(245,196,0,.12),transparent 34%,transparent 72%,rgba(245,196,0,.06));pointer-events:none
}
.sh-auth-visual-grid{
  position:absolute;inset:0;opacity:.18;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,#000,transparent 88%);
}
.sh-auth-visual-content{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;min-height:calc(100svh - 150px);max-width:580px;margin-inline:auto}
.sh-auth-visual-kicker{display:inline-flex;align-items:center;gap:9px;margin-bottom:16px;font-size:11px;font-weight:800;letter-spacing:.12em;color:#f7dd67}
.sh-auth-visual-kicker:before{content:"";width:28px;height:2px;background:var(--sh-yellow)}
.sh-auth-visual h2{margin:0 0 15px;font-size:clamp(38px,4.1vw,64px);line-height:1.08;letter-spacing:-.045em;color:#fff;max-width:620px}
.sh-auth-page.is-rtl .sh-auth-visual h2{letter-spacing:-.02em}
.sh-auth-visual>div p,.sh-auth-visual-content>p{max-width:510px;margin:0;color:#c6c9c1;font-size:14px;line-height:1.9}
.sh-auth-visual-foot{position:absolute;z-index:2;inset-inline:clamp(38px,4vw,72px);bottom:30px;display:flex;justify-content:space-between;align-items:center;color:#787d72;font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase}

.sh-route-demo{
  width:min(100%,480px);margin-top:38px;padding:20px;border:1px solid rgba(255,255,255,.11);border-radius:22px;
  background:rgba(255,255,255,.055);backdrop-filter:blur(10px);box-shadow:0 28px 70px rgba(0,0,0,.18)
}
.sh-route-demo-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.sh-route-demo-head span{font-size:12px;font-weight:800;color:#fff}
.sh-route-demo-head b{padding:5px 8px;border-radius:999px;background:rgba(245,196,0,.12);border:1px solid rgba(245,196,0,.28);color:#f7dc66;font-size:8px;letter-spacing:.1em}
.sh-route-demo-row{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:12px}
.sh-route-demo-row>i{width:34px;height:34px;border-radius:50%;border:7px solid rgba(255,255,255,.08);background:#fff;box-shadow:inset 0 0 0 7px #252821}
.sh-route-demo-row>i.is-dropoff{background:var(--sh-yellow)}
.sh-route-demo-row span{display:flex;flex-direction:column;gap:2px}
.sh-route-demo-row small{font-size:9px;color:#8e9489}
.sh-route-demo-row strong{font-size:12px;color:#f6f7f4}
.sh-route-demo-row em{font-style:normal;font-size:9px;color:#b7bcb1}
.sh-route-demo-line{height:25px;margin-inline-start:16px;border-inline-start:1px dashed rgba(255,255,255,.2)}
.sh-route-demo-line span{display:block;width:5px;height:5px;margin-inline-start:-3px;border-radius:50%;background:var(--sh-yellow);box-shadow:0 0 0 5px rgba(245,196,0,.08)}
.sh-route-demo-status{position:relative;margin-top:18px;padding:13px 14px 13px 42px;border-radius:14px;background:#fff;color:#181a16}
.sh-auth-page.is-rtl .sh-route-demo-status{padding:13px 42px 13px 14px}
.sh-route-demo-status strong,.sh-route-demo-status small{display:block}
.sh-route-demo-status strong{font-size:11px;margin-bottom:2px}.sh-route-demo-status small{font-size:9px;color:#7c8178}
.sh-route-pulse{position:absolute;left:16px;top:17px;width:10px;height:10px;border-radius:50%;background:#28a164;box-shadow:0 0 0 5px rgba(40,161,100,.12)}
.sh-auth-page.is-rtl .sh-route-pulse{left:auto;right:16px}

.sh-auth-main{min-height:100svh;display:flex;align-items:center;justify-content:center;padding:36px clamp(26px,5vw,86px)}
.sh-auth-card{width:min(100%,560px)}
.sh-auth-card-main{padding:4px 0}
.sh-auth-card-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:40px}
.sh-brand{display:inline-flex;align-items:center;gap:11px;text-decoration:none;color:inherit}
.sh-brand-mark{width:54px;height:54px;object-fit:contain;flex:0 0 auto}
.sh-brand-wordmark{display:flex;flex-direction:column;justify-content:center;line-height:1}
.sh-brand-wordmark strong{font-size:25px;font-weight:900;color:var(--sh-ink);letter-spacing:-.035em}
.sh-brand-wordmark small{margin-top:5px;font-size:7.5px;font-weight:800;letter-spacing:.18em;color:#8f938b}
.sh-language-switch{display:inline-flex;align-items:center;padding:3px;border:1px solid #e1e3dc;border-radius:12px;background:#fff}
.sh-language-switch a{min-width:34px;height:30px;padding:0 8px;display:grid;place-items:center;border-radius:9px;text-decoration:none;font-size:10px;font-weight:800;color:#858a81}
.sh-language-switch a.is-active{background:var(--sh-ink);color:#fff}
.sh-language-switch a:focus-visible{outline:2px solid var(--sh-yellow);outline-offset:2px}

.sh-auth-heading{margin:0 0 26px}
.sh-auth-heading>span{display:flex;align-items:center;gap:9px;margin-bottom:9px;color:#9b7d00;font-size:11px;font-weight:800}
.sh-auth-heading>span:before{content:"";width:25px;height:2px;background:var(--sh-yellow);border-radius:9px}
.sh-auth-heading h1{margin:0 0 9px;color:var(--sh-ink);font-size:clamp(32px,3vw,44px);line-height:1.16;letter-spacing:-.045em;font-weight:800}
.sh-auth-page.is-rtl .sh-auth-heading h1{font-weight:900;letter-spacing:-.02em}
.sh-auth-heading p{margin:0;max-width:500px;color:var(--sh-muted);font-size:13px;line-height:1.8}
.sh-auth-heading.center{text-align:center;margin-inline:auto;margin-bottom:23px}
.sh-auth-heading.center>span{justify-content:center}.sh-auth-heading.center>span:before{display:none}

.sh-auth-form{display:grid;gap:16px}
.sh-field{display:grid;gap:8px}
.sh-field>span:first-child{font-size:12px;font-weight:800;color:#30332d}
.sh-field input:not(.sh-otp-digit):not([type="hidden"]){width:100%;height:58px;border:1px solid #dfe1da;border-radius:14px;background:#fff;padding:0 16px;color:var(--sh-ink);font-size:14px;outline:none;box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.sh-field input:not(.sh-otp-digit):not([type="hidden"]):hover{border-color:#cfd2c8}
.sh-field input:not(.sh-otp-digit):not([type="hidden"]):focus{border-color:#b79700;box-shadow:0 0 0 4px rgba(245,196,0,.13);background:#fffef8}
.sh-field input::placeholder{color:#a7aaa3}
.sh-field-hint{font-size:9.5px;color:#9a9e96;margin-top:-3px}
.sh-field-error{min-height:0;font-size:10px;line-height:1.4;color:var(--sh-danger)}
.sh-field-error:empty{display:none}
.sh-field.is-invalid input:not(.sh-otp-digit):not([type="hidden"]),.sh-field.is-invalid .sh-phone-control{border-color:#d88e8e;box-shadow:0 0 0 4px rgba(180,54,54,.08)}

.sh-phone-control{height:58px;display:flex;align-items:center;border:1px solid #dfe1da;border-radius:14px;background:#fff;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}
.sh-phone-control:focus-within{border-color:#b79700;box-shadow:0 0 0 4px rgba(245,196,0,.13);background:#fffef8}
.sh-phone-control b{height:100%;display:grid;place-items:center;padding:0 15px;border-right:1px solid #eceee8;background:#f8f9f5;color:#5c6158;font-size:12px;direction:ltr}
.sh-phone-control input{border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important;font-family:"Inter",Arial,sans-serif;font-size:15px!important;letter-spacing:.03em}
.sh-phone-control input:focus{box-shadow:none!important}

.sh-auth-form-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sh-check{display:inline-flex;align-items:flex-start;gap:8px;color:#5e635a;font-size:10.5px;line-height:1.6}
.sh-check input{width:17px;height:17px;margin:0;accent-color:#171914;flex:0 0 auto}
.sh-check a{font-weight:800;text-decoration:underline;text-decoration-color:#d7be50;text-underline-offset:3px}
.sh-auth-secure-note{display:inline-flex;align-items:center;gap:7px;color:#8b9087;font-size:9.5px}
.sh-auth-secure-note i{width:7px;height:7px;border-radius:50%;background:#28a164;box-shadow:0 0 0 4px rgba(40,161,100,.1)}

.sh-auth-primary{width:100%;min-height:58px;border:0;border-radius:14px;background:var(--sh-ink);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 19px;font-size:13px;font-weight:800;box-shadow:0 12px 28px rgba(17,19,15,.12);transition:transform .15s ease,box-shadow .15s ease,background .15s ease;text-decoration:none}
.sh-auth-primary:hover:not(:disabled){transform:translateY(-1px);background:#000;box-shadow:0 16px 34px rgba(17,19,15,.16)}
.sh-auth-primary:focus-visible{outline:3px solid rgba(245,196,0,.48);outline-offset:3px}
.sh-auth-primary:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.sh-auth-primary b{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--sh-yellow);color:#171914;font-size:17px}
.sh-auth-primary.is-link{margin-top:10px}
.sh-submit-spinner{width:17px;height:17px;border:2px solid rgba(255,255,255,.25);border-top-color:#fff;border-radius:50%;animation:sh-spin .7s linear infinite}
@keyframes sh-spin{to{transform:rotate(360deg)}}

.sh-auth-divider{display:flex;align-items:center;gap:12px;margin:24px 0 15px;color:#979b93;font-size:9.5px;font-weight:700}
.sh-auth-divider:before,.sh-auth-divider:after{content:"";height:1px;background:#e5e7e0;flex:1}
.sh-auth-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sh-auth-account-grid>a{min-height:78px;display:grid;grid-template-columns:42px 1fr;align-items:center;gap:11px;padding:13px;border:1px solid var(--sh-line);border-radius:16px;background:#fff;text-decoration:none;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.sh-auth-account-grid>a:hover,.sh-auth-account-grid>a:focus-visible{border-color:#d8bd42;background:#fffdf4;transform:translateY(-1px);outline:none}
.sh-auth-choice-icon{width:42px;height:42px;padding:11px;border-radius:12px;background:#f3f4f0;color:#3d413a}
.sh-auth-account-grid strong,.sh-auth-account-grid small{display:block}
.sh-auth-account-grid strong{font-size:11px;color:var(--sh-ink);margin-bottom:3px}.sh-auth-account-grid small{font-size:8.7px;color:#858980;line-height:1.45}
.sh-auth-privacy-note{margin:17px 0 0;color:#a0a49c;font-size:8.8px;line-height:1.7;text-align:center}
.sh-auth-foot{margin:21px 0 0;text-align:center;color:#777c73;font-size:11px}
.sh-auth-foot a{font-weight:800;color:var(--sh-ink);text-decoration:none}

/* ===== Focus / OTP / password screens ===== */
.sh-auth-focus{min-height:100svh;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom));background:linear-gradient(rgba(17,19,15,.024) 1px,transparent 1px),linear-gradient(90deg,rgba(17,19,15,.024) 1px,transparent 1px),var(--sh-page);background-size:34px 34px}
.sh-auth-focus-card{width:min(100%,560px);padding:28px 32px 32px;background:#fff;border:1px solid rgba(17,19,15,.07);border-radius:28px;box-shadow:var(--sh-shadow)}
.sh-auth-focus-card>.sh-auth-card-top{margin-bottom:25px}
.sh-auth-symbol{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 16px;padding:16px;border-radius:18px;background:#fff7cc;color:#6f5b00}
.sh-auth-symbol.is-ok{background:#eaf7f0;color:#23784e}.sh-auth-symbol.is-error{background:#fff0f0;color:#a83535;font-size:24px;font-weight:900}
.sh-auth-steps{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 25px}
.sh-auth-steps:before{content:"";position:absolute;top:15px;left:16%;right:16%;height:1px;background:#e4e6df;z-index:0}
.sh-auth-steps>div{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px;color:#a0a49b;font-size:9px;font-weight:700}
.sh-auth-steps i{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#f3f4f0;border:4px solid #fff;box-shadow:0 0 0 1px #e1e3dc;font-style:normal;font-size:9px}
.sh-auth-steps .is-active{color:var(--sh-ink)}.sh-auth-steps .is-active i{background:var(--sh-yellow);box-shadow:0 0 0 1px #d3ad09;color:#171914}
.sh-auth-steps .is-done{color:#4a7a5f}.sh-auth-steps .is-done i{background:#e5f4eb;color:#26704a;box-shadow:0 0 0 1px #c9e4d5}

.sh-otp-meta{display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;color:#8e9389;font-size:9.5px}
.sh-otp-meta strong{font-family:"Inter",monospace;color:#555a52;font-size:10px}
.sh-otp{gap:9px}
.sh-otp-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.sh-otp-digit{width:100%;height:58px;border:1px solid #dfe1da;border-radius:13px;background:#fff;text-align:center;font-family:"Inter",Arial,sans-serif;font-size:21px;font-weight:800;color:var(--sh-ink);outline:none;transition:.15s ease}
.sh-otp-digit:focus{border-color:#b79700;box-shadow:0 0 0 4px rgba(245,196,0,.13);background:#fffef8}
.sh-otp-digit.is-filled{border-color:#c4c8bd;background:#fafbf8}
.sh-field.is-invalid .sh-otp-digit{border-color:#dc9a9a}
.sh-auth-resend{text-align:center;margin-top:15px}
.sh-auth-resend button,.sh-auth-verify-actions a{padding:5px 0;border:0;background:transparent;color:#62675e;font-size:10.5px;font-weight:700;text-decoration:none}
.sh-auth-resend button:hover,.sh-auth-verify-actions a:hover{color:#171914;text-decoration:underline;text-underline-offset:3px}
.sh-auth-verify-actions{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:5px}.sh-auth-verify-actions .sh-auth-resend{margin:0}

.sh-password-wrap{position:relative;display:block}
.sh-password-toggle{position:absolute;top:7px;inset-inline-end:7px;width:44px;height:44px;border:0;border-radius:10px;background:#f1f2ee;color:#6d7269;display:grid;place-items:center}
.sh-password-toggle span{font-size:14px}
.sh-password-field input{padding-inline-end:59px!important}
.sh-password-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:-5px}
.sh-password-rules span{padding:8px;border-radius:10px;background:#f5f6f2;color:#8d9188;text-align:center;font-size:8px;line-height:1.4;border:1px solid #eceee8}
.sh-password-rules span.is-ok{background:#ecf7f0;border-color:#d8ebdf;color:#367654}

/* ===== Registration wizard ===== */
.sh-registration-wizard{gap:0}
.sh-registration-panel{display:grid;gap:16px}
.sh-registration-minihead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:1px;color:#8a8e86;font-size:9px}
.sh-registration-minihead strong{font-size:10.5px;color:#555a51}.sh-registration-minihead button{border:0;background:transparent;padding:0;color:#5f645b;font-size:10px;font-weight:800}
.sh-terms{margin-top:1px}
.sh-terms-error{display:block;margin-top:-8px;color:var(--sh-danger);font-size:10px}

/* ===== Alerts ===== */
.sh-auth-alert{display:grid;grid-template-columns:32px 1fr;align-items:flex-start;gap:10px;padding:12px 13px;margin:0 0 17px;border-radius:14px;border:1px solid #e8e9e4;background:#fafbf8;color:#52574e}
.sh-auth-alert.is-error{background:#fff6f6;border-color:#efcccc;color:#8f2f2f}.sh-auth-alert.is-success{background:#f2faf5;border-color:#cfe6d7;color:#2c6e49}.sh-auth-alert.is-neutral{background:#f8f9f5;border-color:#e2e4dd;color:#5f645b}
.sh-alert-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:rgba(17,19,15,.055);font-size:11px;font-weight:900}
.sh-auth-alert strong{display:block;font-size:10.8px;margin:1px 0 2px}.sh-auth-alert p{margin:0;font-size:9.3px;line-height:1.65;color:inherit;opacity:.86}
.sh-auth-inline-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.sh-auth-inline-action{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:0 10px;border:1px solid currentColor;border-radius:9px;font-size:9px;font-weight:800;text-decoration:none;background:#fff}

/* staging-only OTP helper */
.sh-staging-otp{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;margin-bottom:13px;border-radius:12px;background:#fff8d8;border:1px dashed #d7b529;color:#5d4c00}
.sh-staging-otp div{display:flex;align-items:center;gap:10px}.sh-staging-otp span{font-size:9px}.sh-staging-otp strong{font-size:17px;letter-spacing:.08em}.sh-use-test-code{height:32px;padding:0 10px;border:0;border-radius:8px;background:#191b17;color:#fff;font-size:9px;font-weight:800}.sh-use-test-code.is-done{background:#2e7a50}

/* ===== LTR/RTL details ===== */
.sh-auth-page.is-ltr .sh-auth-heading>span:before{order:0}.sh-auth-page.is-ltr .sh-auth-heading>span{letter-spacing:0}
.sh-auth-page.is-ltr .sh-auth-account-grid strong{font-size:10.5px}.sh-auth-page.is-ltr .sh-auth-visual-kicker{letter-spacing:.15em}
.sh-auth-page.is-ltr .sh-check{font-size:10px}

/* ===== Tablet ===== */
@media(max-width:1080px){
  .sh-auth-shell{grid-template-columns:minmax(390px,42%) minmax(0,58%)}
  .sh-auth-visual{padding-inline:34px}.sh-auth-main{padding-inline:38px}
  .sh-auth-visual h2{font-size:44px}.sh-route-demo{margin-top:28px}
}

/* ===== Mobile ===== */
@media(max-width:780px){
  body.sh-auth-page{background:#f5f6f1}
  .sh-auth-shell{display:block;min-height:100svh;background:#f5f6f1}
  .sh-auth-visual{display:none}
  .sh-auth-main{min-height:100svh;padding:max(14px,env(safe-area-inset-top)) 10px max(14px,env(safe-area-inset-bottom));align-items:center}
  .sh-auth-card-main{width:min(100%,480px);padding:22px 17px 24px;background:#fff;border:1px solid #e8e9e3;border-radius:24px;box-shadow:0 18px 44px rgba(17,19,15,.07)}
  .sh-auth-card-top{margin-bottom:25px}.sh-brand-mark{width:47px;height:47px}.sh-brand-wordmark strong{font-size:22px}.sh-brand-wordmark small{font-size:6.8px}
  .sh-auth-heading{margin-bottom:21px}.sh-auth-heading h1{font-size:30px}.sh-auth-heading p{font-size:12px;line-height:1.75}
  .sh-field input:not(.sh-otp-digit):not([type="hidden"]),.sh-phone-control{height:55px}
  .sh-auth-primary{min-height:55px}.sh-auth-form-row{align-items:flex-start}
  .sh-auth-account-grid{grid-template-columns:1fr 1fr}.sh-auth-account-grid>a{min-height:72px;padding:11px;grid-template-columns:38px 1fr}.sh-auth-choice-icon{width:38px;height:38px;padding:10px}
  .sh-auth-account-grid strong{font-size:10.5px}.sh-auth-account-grid small{font-size:8.2px}
  .sh-auth-focus{padding:max(12px,env(safe-area-inset-top)) 10px max(12px,env(safe-area-inset-bottom))}
  .sh-auth-focus-card{width:min(100%,480px);padding:22px 17px 25px;border-radius:24px}.sh-auth-focus-card>.sh-auth-card-top{margin-bottom:20px}
  .sh-auth-symbol{width:52px;height:52px;padding:14px;border-radius:16px}.sh-otp-grid{gap:6px}.sh-otp-digit{height:52px;font-size:19px;border-radius:11px}
  .sh-language-card{padding:26px 18px;border-radius:24px}.sh-language-options{grid-template-columns:1fr}.sh-language-options a{min-height:82px}
}

@media(max-width:430px){
  .sh-auth-main{padding-left:8px;padding-right:8px}.sh-auth-card-main,.sh-auth-focus-card{padding-left:14px;padding-right:14px;border-radius:21px}
  .sh-auth-card-top{gap:10px}.sh-brand{gap:8px}.sh-brand-mark{width:43px;height:43px}.sh-brand-wordmark strong{font-size:20px}.sh-language-switch a{min-width:30px;height:28px;padding:0 6px}
  .sh-auth-heading h1{font-size:28px}.sh-auth-heading p{font-size:11.5px}.sh-auth-heading>span{font-size:10px}
  .sh-auth-account-grid{grid-template-columns:1fr}.sh-auth-account-grid>a{min-height:65px}
  .sh-auth-form-row{display:grid;gap:8px}.sh-auth-secure-note{justify-self:start}
  .sh-otp-grid{gap:5px}.sh-otp-digit{height:48px;font-size:18px}
  .sh-password-rules{grid-template-columns:1fr}.sh-auth-steps{margin-bottom:20px}
  .sh-language-card{padding:24px 14px}.sh-language-copy h1{font-size:29px}
}

@media(max-height:720px) and (min-width:781px){
  .sh-auth-main{padding-top:22px;padding-bottom:22px}.sh-auth-card-top{margin-bottom:22px}.sh-auth-heading{margin-bottom:18px}.sh-auth-heading h1{font-size:34px}.sh-auth-form{gap:12px}.sh-field input:not(.sh-otp-digit):not([type="hidden"]),.sh-phone-control{height:52px}.sh-auth-primary{min-height:52px}.sh-auth-divider{margin:17px 0 11px}.sh-auth-account-grid>a{min-height:68px;padding-top:10px;padding-bottom:10px}.sh-auth-visual{padding-top:36px}.sh-route-demo{margin-top:24px;padding:16px}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}


/* ==========================================================================
   Phase 1 — mobile auth polish: app-like, safe-area aware, zero boxed-web feel
   ========================================================================== */
@media(max-width:780px){
  html,body.sh-auth-page{background:#fff}
  body.sh-auth-page{min-height:100dvh;overscroll-behavior-y:none}
  .sh-auth-shell{min-height:100dvh;background:#fff}
  .sh-auth-main{min-height:100dvh;align-items:flex-start;justify-content:center;padding:max(18px,env(safe-area-inset-top)) 20px max(30px,env(safe-area-inset-bottom));overflow-y:auto;-webkit-overflow-scrolling:touch}
  .sh-auth-card-main{width:min(100%,520px);margin:auto;padding:8px 0 24px;background:transparent;border:0;border-radius:0;box-shadow:none}
  .sh-auth-card-top{margin-bottom:32px}
  .sh-brand-mark{width:50px;height:50px}.sh-brand-wordmark strong{font-size:23px}.sh-brand-wordmark small{font-size:7px}
  .sh-auth-heading{margin-bottom:24px}.sh-auth-heading h1{font-size:31px;line-height:1.18}.sh-auth-heading p{font-size:12.5px;line-height:1.75}
  .sh-auth-form{gap:15px}
  .sh-field>span:first-child{font-size:12.5px}
  .sh-field input:not(.sh-otp-digit):not([type="hidden"]),.sh-phone-control{height:58px;border-radius:15px}
  .sh-field input:not(.sh-otp-digit):not([type="hidden"]),.sh-phone-control input{font-size:16px!important}
  .sh-auth-primary{min-height:58px;border-radius:15px;font-size:13px}
  .sh-auth-account-grid{grid-template-columns:1fr 1fr;gap:9px}.sh-auth-account-grid>a{min-height:76px;border-radius:15px;padding:12px}
  .sh-auth-focus{min-height:100dvh;display:flex;align-items:flex-start;justify-content:center;padding:max(18px,env(safe-area-inset-top)) 20px max(30px,env(safe-area-inset-bottom));background:#fff;overflow-y:auto}
  .sh-auth-focus-card{width:min(100%,520px);margin:auto;padding:8px 0 26px;border:0;border-radius:0;background:transparent;box-shadow:none}
  .sh-auth-focus-card>.sh-auth-card-top{margin-bottom:28px}
  .sh-auth-symbol{width:54px;height:54px;border-radius:16px}
  .sh-otp-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;width:100%}.sh-otp-digit{min-width:0;height:54px;border-radius:12px;font-size:20px}
  .sh-language-gate{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:max(22px,env(safe-area-inset-top)) 20px max(30px,env(safe-area-inset-bottom));background:#fff}
  .sh-language-card{width:min(100%,520px);padding:8px 0;border:0;border-radius:0;background:transparent;box-shadow:none}
  .sh-language-emblem{width:64px;height:64px;border-radius:19px;margin-bottom:22px}
  .sh-language-copy{margin-bottom:25px}.sh-language-copy h1{font-size:32px}.sh-language-copy p{font-size:12.5px}
  .sh-language-options{grid-template-columns:1fr;gap:10px}.sh-language-options a{min-height:82px;padding:14px 15px;border-radius:16px}
  .sh-language-foot{margin-top:18px}
}
@media(max-width:430px){
  .sh-auth-main,.sh-auth-focus,.sh-language-gate{padding-left:17px;padding-right:17px}
  .sh-auth-card-main,.sh-auth-focus-card,.sh-language-card{padding-left:0;padding-right:0;border-radius:0}
  .sh-auth-card-top{margin-bottom:29px}.sh-brand-mark{width:47px;height:47px}.sh-brand-wordmark strong{font-size:21px}
  .sh-auth-heading h1{font-size:29px}.sh-auth-heading p{font-size:12px}
  .sh-auth-account-grid{grid-template-columns:1fr}.sh-auth-account-grid>a{min-height:68px}
  .sh-otp-grid{gap:5px}.sh-otp-digit{height:50px;font-size:19px}
  .sh-language-copy h1{font-size:30px}
}
@media(max-width:360px){
  .sh-auth-main,.sh-auth-focus,.sh-language-gate{padding-left:14px;padding-right:14px}
  .sh-language-switch a{min-width:29px;padding:0 5px}
  .sh-otp-grid{gap:4px}.sh-otp-digit{height:46px;font-size:18px;border-radius:10px}
}
