/* =========================================================
   Jetra — sign in / sign up / onboarding
   ========================================================= */
:root { --a-bg: #FFFFFF; --a-field: #F3F4F6; --a-field-b: transparent; --a-text: #0B1220; --a-muted: #6B7280; --a-btn: #0A2540; --a-btn-t: #FFFFFF; --a-soc: #F3F4F6; }
[data-theme="dark"] { --a-bg: #000000; --a-field: #141414; --a-field-b: rgba(255,255,255,.09); --a-text: #F5F5F5; --a-muted: #8E8E93; --a-btn: #F5F4F2; --a-btn-t: #0B0B0B; --a-soc: #161616; }
body.auth { background: var(--a-bg); color: var(--a-text); min-height: var(--vh100); }
.auth-wrap { display: grid; grid-template-columns: 1.1fr 1fr; min-height: var(--vh100); }

/* visual side (onboarding look) */
.auth-visual { position: relative; overflow: hidden; margin: 14px; border-radius: 34px; color: #fff; padding: 2.4rem; display: flex; flex-direction: column;
  background: radial-gradient(700px 520px at 50% 105%, rgba(255,90,0,.75), transparent 62%), linear-gradient(180deg, #0B0B0C 0%, #131315 55%, #1A0E06 100%); }
.auth-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 120px 120px; transform: perspective(700px) rotateX(48deg) scale(1.9); transform-origin: 50% 100%; opacity: .7; mask-image: linear-gradient(transparent 20%, #000 70%); }
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual .tag { color: rgba(255,255,255,.62); font-size: .95rem; max-width: 260px; }
.auth-visual h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; }
.auth-visual h1 b { font-weight: 800; color: var(--j-orange); }
.auth-visual .hero-img { position: absolute; right: 3%; bottom: 112px; height: 60%; max-height: 640px; width: auto; max-width: 58%; object-fit: contain; z-index: 1; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.auth-visual .copy { position: relative; z-index: 2; }
.auth-visual .stats { display: flex; gap: 2rem; }
.auth-visual .stats b { display: block; font-size: 1.5rem; }
.auth-visual .stats span { font-size: .75rem; color: rgba(255,255,255,.55); }

/* swipe button */
.swipe { position: relative; height: 66px; border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); display: flex; align-items: center; user-select: none; touch-action: none; max-width: 420px; }
.swipe .knob { position: absolute; left: 6px; top: 6px; height: 54px; padding: 0 1.4rem 0 .5rem; border-radius: 999px; background: var(--j-orange); display: flex; align-items: center; gap: .8rem; color: #fff; font-weight: 600; cursor: grab; box-shadow: 0 10px 25px rgba(255,107,0,.45); z-index: 2; text-decoration: none; }
.swipe .knob .ic { width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.18); display: grid; place-items: center; }
.swipe .knob:active { cursor: grabbing; }
.swipe .chev { margin-left: auto; margin-right: 1.4rem; color: rgba(255,255,255,.5); letter-spacing: -4px; font-size: 1.1rem; animation: nudge 1.6s infinite; }
@keyframes nudge { 50% { transform: translateX(6px); opacity: .9; } }
.swipe-back { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; flex: none; text-decoration: none; }

/* form side */
.auth-form { display: flex; flex-direction: column; padding: 2rem clamp(1.4rem, 5vw, 4.5rem); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.auth-top .back { color: var(--a-text); font-size: 1.6rem; text-decoration: none; line-height: 1; }
.auth-top .help { color: var(--a-muted); font-size: .92rem; text-decoration: none; }
.auth-top .help b { color: var(--a-text); font-weight: 600; }
.auth-body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 460px; width: 100%; margin: 0 auto; padding: 2.5rem 0; }
.auth-body h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin-bottom: 2.2rem; color: var(--a-text); }
.auth-body h2 span { color: var(--j-orange); }
.auth-body .sub { color: var(--a-muted); margin-top: -1.4rem; margin-bottom: 2rem; }
.a-field { position: relative; margin-bottom: 1rem; }
.a-field input, .a-field select { width: 100%; height: 64px; border-radius: 999px; border: 1px solid var(--a-field-b); background: var(--a-field); color: var(--a-text); padding: 0 1.6rem; font-size: 1rem; font-weight: 500; outline: none; transition: border-color .2s, box-shadow .2s; appearance: none; }
.a-field input::placeholder { color: var(--a-muted); }
.a-field input:focus, .a-field select:focus { border-color: var(--j-orange); box-shadow: 0 0 0 4px rgba(255,107,0,.15); }
.a-field .eye { position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--a-muted); font-size: 1.25rem; }
.a-field .pre { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%); color: var(--a-muted); font-weight: 600; }
.a-field.has-pre input { padding-left: 4.6rem; }
.a-link { color: var(--a-muted); text-decoration: none; font-size: .92rem; }
.a-link:hover { color: var(--j-orange); }
.a-btn { height: 64px; border-radius: 999px; border: 0; width: 100%; background: var(--a-btn); color: var(--a-btn-t); font-weight: 600; font-size: 1.05rem; transition: transform .15s, box-shadow .2s; }
.a-btn:hover { box-shadow: 0 12px 30px rgba(0,0,0,.18); transform: translateY(-1px); }
.a-btn.orange { background: var(--j-orange); color: #fff; }
.a-or { text-align: center; color: var(--a-text); margin: 2rem 0 1.6rem; font-size: .95rem; }
.a-soc { display: flex; justify-content: center; gap: 1.1rem; }
.a-soc a { width: 76px; height: 76px; border-radius: 22px; background: var(--a-soc); display: grid; place-items: center; font-size: 1.8rem; color: var(--a-text); text-decoration: none; transition: transform .2s; border: 1px solid var(--a-field-b); }
.a-soc a:hover { transform: translateY(-3px); }
.a-foot { text-align: center; color: var(--a-muted); font-size: .95rem; padding-bottom: .5rem; }
.a-foot a { color: var(--a-text); font-weight: 600; text-decoration: none; }
.a-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px; background: var(--a-field); margin-bottom: 1.2rem; border: 1px solid var(--a-field-b); }
.a-seg label { height: 48px; border-radius: 999px; display: grid; place-items: center; font-weight: 600; font-size: .9rem; color: var(--a-muted); cursor: pointer; }
.a-seg input:checked + label { background: var(--j-orange); color: #fff; }
.a-check { display: flex; gap: .7rem; align-items: flex-start; color: var(--a-muted); font-size: .88rem; margin: .4rem 0 1.4rem; }
.a-check a { color: var(--a-text); font-weight: 600; }
.a-check input { margin-top: .2rem; accent-color: var(--j-orange); width: 18px; height: 18px; flex: none; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
.otp input { height: 64px; border-radius: 18px; text-align: center; font-size: 1.5rem; font-weight: 700; border: 1px solid var(--a-field-b); background: var(--a-field); color: var(--a-text); outline: none; }
.otp input:focus { border-color: var(--j-orange); box-shadow: 0 0 0 4px rgba(255,107,0,.15); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: -.3rem .6rem 1rem; }
.strength i { height: 5px; border-radius: 4px; background: var(--a-field); }
.strength.s1 i:nth-child(-n+1), .strength.s2 i:nth-child(-n+2) { background: var(--j-warn); }
.strength.s3 i:nth-child(-n+3), .strength.s4 i { background: var(--j-success); }
.auth .theme-toggle { width: 40px; height: 40px; }
[data-theme="dark"] .auth .theme-toggle { background: #161616; }
.auth-logo { height: 34px; }

@media (max-width: 991.98px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-wrap.welcome .auth-visual { display: flex; margin: 0; border-radius: 0; min-height: 100vh; padding: 1.4rem 1.2rem 1.6rem; }
  .auth-wrap.welcome .auth-form { display: none; }
  .auth-visual .hero-img { height: 52%; max-width: 92%; right: -6%; bottom: 104px; }
  .auth-form { padding: 1.4rem 1.4rem 1.2rem; min-height: 100vh; }
  .auth-body { justify-content: flex-start; padding-top: 3.2rem; }
  .a-field input, .a-btn { height: 58px; }
  .a-soc a { width: 68px; height: 68px; }
}
