
:root {
  --brand: #2563FF; --brand-text: #1C4FD8;
  --ink: #111318; --ink-2: #6B7080; --line: #D9DCE3; --line-2: #E8EAEF; --bg: #FFFFFF; --seg: #F1F2F5;
  --err: #C62828; --err-soft: #FDECEC; --ok: #1E7B45; --ok-soft: #E6F4EC;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Google Sans', system-ui, sans-serif; background: var(--bg); color: var(--ink);
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; padding: 16px; gap: 16px;
}
/* form side (right in RTL) */
.side { display: grid; place-items: center; padding: 32px 24px; }
.form { width: 100%; max-width: 410px; }
h1 { font-size: 34px; font-weight: 700; margin: 0 0 22px; letter-spacing: -.5px; line-height: 1.15; }
.sub { font-size: 15px; color: var(--ink-2); margin: -10px 0 26px; line-height: 1.6; }
.seg { display: inline-flex; background: var(--seg); border-radius: 999px; padding: 5px; margin-bottom: 30px; }
.seg button { border: 0; background: none; font: inherit; cursor: pointer; padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: #fff; }
.lrow { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.field { margin-bottom: 22px; }
.inp { position: relative; }
input {
  width: 100%; height: 56px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  padding: 0 22px; font: inherit; font-size: 16px; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #A3A8B4; }
input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 19, 24, .06); }
input[dir="ltr"] { text-align: right; }
input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.inp input[type="password"], .inp input.pw { padding-left: 54px; }
.eye { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.eye:hover { background: var(--seg); }
.eye svg { width: 20px; height: 20px; }
input.code { text-align: center !important; letter-spacing: 12px; font-size: 24px; font-weight: 600; }
.btn, .btn2 {
  width: 100%; height: 56px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: background .15s, opacity .15s, transform .1s;
}
.btn { border: 0; background: var(--ink); color: #fff; }
.btn:hover { background: #262A33; }
.btn2 { border: 1.5px solid var(--line); background: #fff; color: var(--ink); height: 52px; margin-top: 14px; font-weight: 500; }
.btn2:hover { background: #F7F8FA; }
.btn:active, .btn2:active { transform: translateY(1px); }
.btn[disabled], .btn2[disabled] { opacity: .55; cursor: default; }
.btn2 svg { width: 20px; height: 20px; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.link:hover { color: var(--ink); text-decoration: underline; }
.back { margin-top: 22px; text-align: center; }
.or { display: flex; align-items: center; gap: 16px; margin: 28px 0 14px; color: var(--ink-2); font-size: 14px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.msg { display: none; font-size: 14px; border-radius: 16px; padding: 12px 16px; margin-bottom: 20px; line-height: 1.5; }
.msg.err { display: block; background: var(--err-soft); color: var(--err); }
.msg.ok { display: block; background: var(--ok-soft); color: var(--ok); }
.qr { display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 24px; padding: 18px; margin-bottom: 12px; }
.qr img { width: 180px; height: 180px; }
.secret { font-size: 12px; color: var(--ink-2); text-align: center; margin: 0 0 20px; word-break: break-all; direction: ltr; }
.steps { margin: 0 0 20px; padding: 0 18px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.75; }
section[hidden] { display: none; }

/* picture side (left in RTL) */
.art {
  position: relative; border-radius: 28px; overflow: hidden; min-height: calc(100vh - 32px);
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(84, 117, 255, .55) 0%, transparent 70%),
    radial-gradient(55% 45% at 20% 85%, rgba(0, 184, 255, .30) 0%, transparent 70%),
    linear-gradient(160deg, #0E1A4A 0%, #1A2E8A 45%, #2563FF 100%);
}
.art .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art::after { /* fine dot grid over the picture, like the reference */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.2px); background-size: 22px 22px;
}
.bigc { position: absolute; top: 50%; right: -38%; height: 112%; width: auto; aspect-ratio: 1; transform: translateY(-50%); opacity: .08; pointer-events: none; }
.brand { position: absolute; top: 9%; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 14px; z-index: 1; direction: ltr; }
.brand img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.brand b { color: #fff; font-size: 64px; font-weight: 700; letter-spacing: -2px; line-height: 1; }

@media (max-width: 900px) {
  body { grid-template-columns: 1fr; padding: 0; }
  .art { display: none; }
  .side { min-height: 100vh; padding: 32px 16px; }
  h1 { font-size: 28px; }
}
