/* Sign-in, "Verify your login" and forgot / reset password — same design as the Nex Era Fulfillment system.
   Used by the admin frame (layouts/auth.php) and inside the store (member/otp_verify, pw_*). Everything is
   scoped under .otp-scope with its own colour variables, so it looks the same on both themes. */
.otp-scope{--otp-red:#e00000;--otp-red-700:#8a0000;--otp-red-50:#fdf2f2;--otp-red-100:#fce4e4;--otp-glow:rgba(224,0,0,.22);
  --otp-ink:#1c2024;--otp-muted:#6b7280;--otp-line:#e8e8ee}
.si-wrap{min-height:100vh;display:grid;place-items:center;background:radial-gradient(1100px 480px at 50% -10%,#fde8e8,#f6f7f9);padding:20px}
.si-card{background:#fff;border:1px solid var(--otp-line);border-radius:18px;box-shadow:0 18px 50px rgba(16,24,40,.12);padding:34px 32px;width:100%;max-width:440px}
.si-logo{display:block;text-align:center;margin-bottom:10px}
.si-logo img{height:58px;width:auto;margin:0 auto}
.otp-scope h2{text-align:center;margin:.2rem 0 .4rem;font-size:1.45rem;color:var(--otp-ink)}
.otp-scope .auth-sub{text-align:center;color:var(--otp-muted);font-size:.95rem;margin:0 0 1.4rem}
.otp-scope .field{margin-bottom:1rem}
.otp-scope label{display:block;font-weight:600;font-size:.88rem;margin-bottom:.35rem;color:#374151}
.otp-scope input[type=email],.otp-scope input[type=password],.otp-scope input[type=text]{width:100%;padding:.72rem .85rem;border:1px solid var(--otp-line);
  border-radius:10px;font:inherit;font-size:1rem;background:#fff;color:var(--otp-ink)}
.otp-scope input:focus{outline:none;border-color:var(--otp-red);box-shadow:0 0 0 3px var(--otp-glow)}
.otp-scope .btn-main{display:block;width:100%;border:0;border-radius:10px;background:var(--otp-red);color:#fff;font:inherit;font-weight:700;
  font-size:1rem;padding:.8rem 1rem;cursor:pointer;text-align:center;text-decoration:none}
.otp-scope .btn-main:hover{background:#c40000}
.otp-scope .btn-soft{display:inline-flex;align-items:center;gap:.35rem;border:1px solid var(--otp-line);background:#fff;color:var(--otp-ink);
  border-radius:9px;padding:.45rem .8rem;font:inherit;font-size:.86rem;font-weight:600;cursor:pointer;text-decoration:none}
.otp-scope .btn-soft:hover{background:#f6f7f9}
.otp-scope .auth-foot{text-align:center;margin-top:1.1rem;font-size:.9rem;color:var(--otp-muted)}
.otp-scope .auth-foot a{color:var(--otp-red);text-decoration:none}
.otp-scope .auth-foot a:hover{text-decoration:underline}
.otp-scope .msg{padding:.75rem .9rem;border-radius:10px;margin-bottom:1rem;font-size:.9rem;border:1px solid transparent}
.otp-scope .msg-bad{background:var(--otp-red-50);color:var(--otp-red-700);border-color:var(--otp-red-100)}
.otp-scope .msg-ok{background:#ecfdf3;color:#027a48;border-color:#d1fadf}
/* verify page */
.otp-head{text-align:center;margin-bottom:1.1rem}
.otp-badge{width:66px;height:66px;margin:0 auto 1rem;border-radius:18px;display:grid;place-items:center;color:#fff;
  background:linear-gradient(135deg,var(--otp-red) 0%,var(--otp-red-700) 100%);box-shadow:0 8px 20px var(--otp-glow)}
.otp-head h2{margin:.2rem 0 .45rem;font-size:1.4rem}
.otp-sub{color:var(--otp-muted);font-size:.95rem;margin:0}
.otp-target{display:flex;align-items:center;gap:.7rem;text-align:left;background:var(--otp-red-50);border:1px solid var(--otp-red-100);
  border-radius:12px;padding:.65rem .85rem;margin:0 0 1.1rem}
.otp-target-ico{width:38px;height:38px;flex:none;display:grid;place-items:center;background:#fff;border-radius:9px;font-size:1.05rem;
  box-shadow:0 1px 3px rgba(16,24,40,.08)}
.otp-target-label{font-size:.68rem;text-transform:uppercase;letter-spacing:.5px;color:var(--otp-muted);font-weight:700}
.otp-target-mail{font-size:1rem;font-weight:700;color:var(--otp-ink);word-break:break-all}
.otp-boxes{display:flex;gap:.55rem;justify-content:center;margin:1.1rem 0 .3rem}
.otp-box{width:52px;height:62px;text-align:center;font-size:1.6rem;font-weight:800;color:var(--otp-ink);border:1.5px solid var(--otp-line);
  border-radius:12px;background:#fbfcfd;padding:0;transition:.15s}
.otp-box:focus{border-color:var(--otp-red);background:#fff;box-shadow:0 0 0 3px var(--otp-glow);outline:none}
.otp-box:not(:placeholder-shown){border-color:var(--otp-red);color:var(--otp-red);background:#fff}
.otp-expiry{display:flex;align-items:center;justify-content:center;gap:.35rem;color:var(--otp-muted);font-size:.88rem;margin:0 0 1.1rem}
.otp-remember{display:flex;gap:.55rem;align-items:flex-start;font-size:.9rem;color:#374151;margin:-.2rem 0 1.1rem;text-align:left;cursor:pointer;font-weight:600}
.otp-remember input{margin-top:.25rem;accent-color:var(--otp-red)}
.otp-actions{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;margin-top:1.1rem;padding-top:1.1rem;border-top:1px solid var(--otp-line)}
.otp-actions form{margin:0}
.otp-backup{margin-top:1rem;font-size:.86rem;text-align:left;background:#fafafa;border:1px solid var(--otp-line);border-radius:10px;padding:.6rem .8rem}
.otp-backup summary{cursor:pointer;font-weight:600;color:#374151}
.otp-backup form{display:flex;gap:.5rem;margin:.7rem 0 .4rem}
.otp-backup input[type=text]{flex:1;text-transform:uppercase;letter-spacing:.12em;font-family:ui-monospace,Consolas,monospace}
.otp-backup .btn-main{width:auto;padding:.5rem .9rem;font-size:.86rem}
.otp-backup p{margin:0;color:var(--otp-muted);font-size:.78rem}
.otp-security{text-align:center;margin:1rem 0 0;color:var(--otp-muted);font-size:.8rem}
@media(max-width:440px){.si-card{padding:26px 18px}.otp-box{width:42px;height:52px;font-size:1.35rem}.otp-boxes{gap:.4rem}}
/* Two-panel sign-in window (admin + member): red brand panel + white form — same style as the Nex Era portal */
.sx-wrap{min-height:100vh;display:grid;place-items:center;padding:28px 16px;background:linear-gradient(135deg,#e00000 0%,#b10000 55%,#8a0000 100%)}
.sx-card{width:100%;max-width:1200px;display:grid;grid-template-columns:1fr 1fr;border-radius:22px;overflow:hidden;box-shadow:0 30px 80px rgba(60,0,0,.35);background:#fff}
.sx-hero{background:linear-gradient(160deg,#e00000 0%,#a50000 100%);color:#fff;display:flex;align-items:center;padding:48px 44px}
.sx-hero-in{max-width:470px}
.sx-logo{display:inline-block;background:#fff;border-radius:14px;padding:8px 14px;margin-bottom:22px;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.sx-logo img{height:38px;width:auto;display:block}
.sx-hero h1{margin:0 0 10px;font-size:2.1rem;line-height:1.15;font-weight:800;color:#fff}
.sx-tag{margin:0 0 26px;opacity:.92;font-size:1.05rem}
.sx-hero ul{margin:0;padding-left:20px}
.sx-hero li{margin:0 0 12px;font-size:1.02rem;line-height:1.5}
.sx-form{padding:48px 44px;display:flex;flex-direction:column;justify-content:center}
.sx-form h2{text-align:left;margin:0 0 .3rem}
.sx-form .auth-sub{text-align:left;margin-bottom:1.3rem}
.sx-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}
.sx-tabs a{display:block;text-align:center;padding:.8rem;border-radius:12px;font-weight:700;text-decoration:none;background:#eef2f7;color:#64748b}
.sx-tabs a.on{background:var(--otp-red);color:#fff;box-shadow:0 8px 18px var(--otp-glow)}
.sx-form .auth-foot{text-align:right}
.sx-form .auth-foot.center{text-align:center}
.sx-or{display:flex;align-items:center;gap:12px;color:var(--otp-muted);font-size:.85rem;margin:1.2rem 0 .9rem}
.sx-or:before,.sx-or:after{content:"";flex:1;height:1px;background:var(--otp-line)}
.sx-alt{display:block;text-align:center;border:1px solid var(--otp-line);border-radius:12px;padding:.8rem;color:var(--otp-ink);text-decoration:none;font-weight:600;margin-bottom:.6rem}
.sx-alt:hover{background:#f6f7f9}
@media(max-width:860px){.sx-card{grid-template-columns:1fr}.sx-hero{padding:28px 24px}.sx-hero ul{display:none}.sx-hero h1{font-size:1.6rem}.sx-tag{margin-bottom:0}.sx-form{padding:28px 22px}}
.sx-social{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:.8rem 1rem;text-align:left}
.sx-social span{font-weight:600}
