/* ═══════════════ Moria — login ═══════════════ */
:root{--navy:#153669;--indigo:#110f7d;--deep:#04031c;--violet:#8b5cf6;--ink:#0f1d3a;--muted:#5d6b86;--line:#e3e8f1;--soft:#eef2f9;--paper:#f3f5fa;--r:#ef4444;--g:#16a34a;
  --display:'Karantina','Heebo',Arial,sans-serif;--body:'Heebo',Arial,sans-serif}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:var(--body);color:var(--ink);background:var(--paper);-webkit-font-smoothing:antialiased}
button,input{font:inherit;color:inherit}
.lg{min-height:100%;display:grid;grid-template-columns:minmax(380px,520px) 1fr}
.lg-main{order:1}.lg-side{order:2} /* RTL: the form on the right, where reading starts */

/* the form side (right in RTL) */
.lg-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;background:#fff;position:relative;z-index:2;box-shadow:-20px 0 60px rgba(4,3,28,.18)}
.lg-card{width:100%;max-width:380px}
.lg-mark{width:74px;height:74px;border-radius:50%;box-shadow:0 0 0 6px #eef1fb;margin-bottom:18px}
.lg-card h2{margin:0;font-family:var(--display);font-size:54px;line-height:.95;color:var(--navy)}
.lg-sub{margin:6px 0 22px;color:var(--muted);font-size:14.5px}
.lg-sub b{color:var(--ink)}
.lg-msg{border-radius:12px;padding:10px 14px;font-size:14px;font-weight:600;margin-bottom:16px}
.lg-msg.err{background:#fef2f2;color:#b42318;border:1px solid #fecaca}
.lg-msg.ok{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}
.lg-form{display:flex;flex-direction:column;gap:14px}
.fld{display:flex;flex-direction:column;gap:6px}
.fld>span{font-size:13.5px;font-weight:700}
.fld input{width:100%;border:1.5px solid var(--line);border-radius:14px;padding:13px 14px;font-size:16px;background:#fbfcfe;outline:none;transition:border .15s,box-shadow .15s;text-align:right}
.fld input:focus{border-color:#5b7cff;box-shadow:0 0 0 4px rgba(91,124,255,.14);background:#fff}
.fld input.code{font-size:32px;letter-spacing:.5em;text-align:center;font-weight:800;padding:14px 10px 14px 0;color:var(--indigo)}
.pw{position:relative;display:block}
.pw input{padding-left:46px}
.pw .eye{position:absolute;left:8px;top:50%;transform:translateY(-50%);border:0;background:none;font-size:18px;cursor:pointer;opacity:.6;width:34px;height:34px;border-radius:8px}
.pw .eye:hover{opacity:1;background:var(--soft)}
.ck{display:flex;align-items:center;gap:9px;font-size:14px;cursor:pointer;user-select:none}
.ck input{width:18px;height:18px;accent-color:var(--indigo)}
.go{margin-top:4px;border:0;border-radius:14px;padding:14px;font-size:17px;font-weight:800;color:#fff;cursor:pointer;
  background:linear-gradient(270deg,var(--indigo),var(--navy));box-shadow:0 12px 26px rgba(17,15,125,.28);transition:transform .15s,box-shadow .15s}
.go:hover{transform:translateY(-1px);box-shadow:0 16px 32px rgba(17,15,125,.34)}
.lg-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.lnk{border:0;background:none;padding:0;color:var(--indigo);font-weight:700;font-size:14px;text-decoration:none;cursor:pointer}
.lnk:hover{text-decoration:underline}
.lg-foot{position:absolute;bottom:18px;inset-inline:0;text-align:center;font-size:12px;color:#9aa6bd}

/* the picture side (left in RTL) */
.lg-side{position:relative;overflow:hidden;color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:36px 44px 130px;
  background:linear-gradient(200deg,rgba(4,3,28,.25),rgba(4,3,28,.55) 45%,rgba(17,15,125,.92)),var(--bg) center/cover no-repeat}
.lg-side::after{content:'';position:absolute;inset:0;background:radial-gradient(900px 500px at 0% 100%,rgba(139,92,246,.35),transparent 60%);pointer-events:none}
.lg-brand{position:relative;z-index:1;display:flex;align-items:center;gap:12px}
.lg-brand img{width:52px;height:52px;border-radius:50%;box-shadow:0 0 0 3px rgba(255,255,255,.3)}
.lg-brand b{display:block;font-family:var(--display);font-size:38px;line-height:.9}
.lg-brand small{font-size:13px;opacity:.85}
.lg-hero{position:relative;z-index:1;max-width:560px}
.lg-hero .kick{display:inline-block;font-size:14px;font-weight:700;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:99px;padding:4px 14px;backdrop-filter:blur(4px)}
.lg-hero h1{margin:12px 0 8px;font-family:var(--display);font-size:clamp(84px,9vw,150px);line-height:.82;text-shadow:0 6px 30px rgba(4,3,28,.4)}
.lg-hero h1 span{display:block;color:#c9d6ff}
.lg-hero p{margin:0;font-size:17px;max-width:420px;line-height:1.5;opacity:.92}
.lg-line{position:absolute;z-index:1;bottom:0;left:0;width:100%;height:120px;opacity:.85}
.lg-line path{fill:none;stroke:#7aa2ff;stroke-width:5;stroke-linecap:round;stroke-dasharray:1400;stroke-dashoffset:1400;animation:draw 3.5s ease-out .3s forwards}
.lg-line circle{fill:#fff;stroke:#3b5bdb;stroke-width:3}
@keyframes draw{to{stroke-dashoffset:0}}

/* phone: the picture becomes a band above the form */
@media (max-width:860px){
  .lg{grid-template-columns:1fr;grid-template-rows:auto 1fr}
  .lg-main{order:2;justify-content:flex-start;padding:24px 18px 70px;box-shadow:none;border-radius:26px 26px 0 0;margin-top:-26px}
  .lg-side{order:1;min-height:270px;padding:22px 20px 70px}
  .lg-line{height:56px;opacity:.55}
  .lg-hero h1{font-size:76px}
  .lg-hero p{display:none}
  .lg-card h2{font-size:44px}
  .lg-mark{display:none}
}

/* single column (confirm a device) */
.lg.one{grid-template-columns:1fr}
.lg.one .lg-main{box-shadow:none;background:var(--paper)}
.lg.one .lg-card{background:#fff;border-radius:24px;padding:26px 22px;box-shadow:0 12px 40px rgba(9,20,50,.1)}
