/* Standalone authentication uses the same font, blue and quiet surfaces as the shop. */
.op-auth,.op-auth *,.op-auth *::before,.op-auth *::after { box-sizing:border-box; }
.op-auth { margin:0; color:#172c38; background:#f6f8f9; font-family:Vazirmatn,sans-serif; font-feature-settings:'ss01'; line-height:1.8; }
.op-auth [hidden] { display:none !important; }
.op-auth-page { display:flex; align-items:center; justify-content:center; min-height:100vh; min-height:100svh; padding:32px 20px; }
.op-auth-card { position:relative; width:100%; max-width:420px; padding:44px 36px 36px; border:1px solid #e2eaee; border-radius:20px; background:#fff; }
.op-auth-back { display:flex; align-items:center; justify-content:center; position:absolute; inset-inline-start:14px; top:14px; width:44px; height:44px; border-radius:50%; color:#6b808c; }
.op-auth-back svg { width:20px; height:20px; }
.op-auth-back:hover { color:#087fae; background:#f0f6f9; }
.op-auth-logo { display:flex; justify-content:center; align-items:center; width:160px; min-height:44px; margin:0 auto 34px; text-decoration:none; }
.op-auth-logo img { display:block; width:150px; height:44px; object-fit:contain; }
.op-auth-logo span { color:#087fae; font-size:20px; font-weight:800; }
.op-auth h1 { margin:0 0 10px; font-size:21px; line-height:1.6; font-weight:700; }
.op-auth-description { margin:0 0 28px; color:#6b7e8a; font-size:13px; line-height:2; }
.op-auth-mobile { color:#304c5c; font-weight:600; white-space:nowrap; }
.op-auth-field { margin-bottom:20px; }
.op-auth label { display:block; margin-bottom:9px; color:#3b5565; font-size:13px; font-weight:600; }
.op-auth input:not([type=hidden]) { display:block; width:100%; min-height:52px; margin:0; padding:11px 15px; border:1px solid #e1e9ee; border-radius:11px; outline:none; background:#f7f9fa; color:#172c38; font:500 17px/1.6 Vazirmatn,sans-serif; font-feature-settings:'ss01'; text-align:left; letter-spacing:1px; -webkit-appearance:none; appearance:none; transition:border-color .15s,background-color .15s; }
.op-auth input::placeholder { color:#a1afb8; font-size:15px; letter-spacing:1px; }
.op-auth input:not([type=hidden]):focus { border-color:#89b9cf; background:#fff; box-shadow:0 0 0 3px #087fae0a; }
.op-auth input[aria-invalid=true] { border-color:#e4a2a8; background:#fffafa; }
.op-auth input.op-auth-otp { min-height:60px; font-size:26px; text-align:center; letter-spacing:.28em; padding-inline-start:calc(15px + .28em); }
.op-auth-error { margin:9px 0 0; color:#bd3a4b; font-size:12px; line-height:1.9; }
.op-auth-submit { display:flex; justify-content:center; align-items:center; width:100%; min-height:48px; padding:12px 18px; border:0; border-radius:11px; color:#fff; background:#087fae; font:600 14px/1.6 Vazirmatn,sans-serif; cursor:pointer; transition:background-color .15s; }
.op-auth-submit:hover { background:#076f99; }
.op-auth-submit:disabled { opacity:.65; cursor:wait; }
.op-auth-edit { display:flex; align-items:center; justify-content:center; width:fit-content; min-height:44px; margin:21px auto 0; padding:5px 0; color:#087fae; font-size:12px; font-weight:500; text-align:center; text-decoration:none; }
.op-auth :is(a,button):focus-visible { outline:2px solid #087fae; outline-offset:4px; }
@media (max-width:480px) {
    .op-auth { background:#fff; }
    .op-auth-page { align-items:flex-start; padding:36px 20px; padding-top:max(36px,env(safe-area-inset-top)); }
    .op-auth-card { margin-top:8vh; padding:44px 8px 24px; border:0; border-radius:0; }
    .op-auth-back { inset-inline-start:0; top:0; }
    .op-auth-logo { margin-bottom:36px; }
}
@media (max-height:500px) { .op-auth-page { align-items:flex-start; } .op-auth-card { margin-top:0; } }
@media (prefers-reduced-motion:reduce) { .op-auth * { transition:none; } }
