:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15,23,42,0.08);
  --primary: #111827;
  --accent: #2563eb;
}
* { box-sizing: border-box; }
*,
*::before,
*::after { min-width: 0; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: var(--text);
}
.loginShell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 32px;
}
.loginHero, .loginCard {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(15,23,42,0.08);
}
.loginHero { padding: 40px; }
.loginCard { padding: 32px; max-width: 520px; width: 100%; justify-self: end; align-self: center; }
.loginBrand { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.loginLogo { width:40px; height:40px; display:block; object-fit:contain; object-position:center; border-radius:10px; box-shadow:0 10px 24px rgba(15,23,42,.08); }
.loginBrandName { font-weight: 800; letter-spacing: 0.02em; }
.loginEyebrow { color: var(--accent); font-weight: 700; margin-bottom: 10px; }
h1 { font-size: 40px; line-height: 1.05; margin: 0 0 16px; }
p { color: var(--muted); line-height: 1.6; }
.loginFeatureGrid { display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; margin-top: 28px; }
.loginFeature { padding:16px; border:1px solid var(--border); border-radius:18px; background:#fff; }
.loginFeatureTitle { font-weight: 700; margin-bottom: 8px; }
.loginFeatureText { color: var(--muted); font-size: 14px; line-height: 1.45; }
.loginTags { display:flex; flex-wrap:wrap; gap:10px; margin-top: 24px; }
.loginTags span, .apiHint { display:inline-flex; padding:8px 12px; border-radius:999px; background:#eef2ff; color:#3730a3; font-size:12px; font-weight:700; }
.loginSub { margin-top: -4px; }
.loginForm { display:grid; gap: 16px; margin-top: 22px; }
.field span { display:block; margin-bottom:8px; font-weight:700; }
.field input { width:100%; border:1px solid #dbe3ef; border-radius:14px; padding:14px 16px; font-size:16px; }
.phoneInputWrap { display:flex; align-items:center; border:1px solid #dbe3ef; border-radius:14px; overflow:hidden; background:#fff; }
.phonePrefix { padding: 0 14px; color: var(--muted); font-weight:700; }
.phoneInputWrap input { border:0; border-left:1px solid #e5e7eb; border-radius:0; }
.actionsRow { display:flex; gap:12px; flex-wrap:wrap; }
.btn { border:0; border-radius:14px; padding:14px 18px; font-weight:800; cursor:pointer; }
.btnPrimary { background: var(--primary); color:#fff; }
.btnGhost { background:#fff; color:var(--text); border:1px solid #dbe3ef; }
.statusBar { margin-top:18px; display:flex; justify-content:space-between; gap:10px; padding:14px 16px; border-radius:16px; background:#f8fafc; border:1px solid var(--border); }
.statusText { color: var(--muted); }
.statusBadge { font-weight:800; color:#334155; }
.loginFoot { margin-top:18px; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:14px; }
.loginFoot a { color: var(--accent); text-decoration:none; font-weight:700; }
@media (max-width: 980px) {
  .loginShell { grid-template-columns: 1fr; padding: 18px; }
  .loginCard { justify-self: stretch; max-width: none; }
  .loginFeatureGrid { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}

/* ===== VantageX visual language migration: OTP access surface ===== */
:root{
  --card:var(--surface, #ffffff);
  --border:var(--line, rgba(15,23,42,.08));
  --primary:var(--text, #141923);
}

html,
body{
  min-height:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  font-family:var(--font-sans, Inter, Arial, sans-serif);
  background:
    radial-gradient(920px 420px at -8% -8%, rgba(37,99,235,.08), transparent 58%),
    radial-gradient(820px 380px at 108% 0%, rgba(98,91,255,.07), transparent 56%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 46%, #ffffff 100%);
  color:var(--text, #141923);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

button,
input{
  font:inherit;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, transform .16s ease, opacity .16s ease;
}

button:active{
  transform:translateY(0) scale(.985);
}

.loginShell{
  width:min(1440px, calc(100vw - 48px));
  margin:0 auto;
  min-height:100dvh;
  grid-template-columns:minmax(0, 1.08fr) minmax(360px, .72fr);
  gap:24px;
  padding:32px 0;
  align-items:stretch;
}

.loginHero,
.loginCard{
  position:relative;
  overflow:hidden;
  width:100%;
  max-width:100%;
  border:1px solid rgba(230,235,243,.95);
  border-radius:28px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow-sm, 0 1px 2px rgba(16,24,40,.05), 0 8px 22px rgba(16,24,40,.035));
}

.loginHero{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:clamp(30px, 4vw, 46px);
  background:
    radial-gradient(circle at 8% 0%, rgba(37,99,235,.11), transparent 34%),
    radial-gradient(circle at 100% 18%, rgba(98,91,255,.09), transparent 30%),
    rgba(255,255,255,.96);
}

.loginHero::before,
.loginCard::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg, var(--accent, #2563eb), var(--accent-2, #625bff), #a8b1c2);
}

.loginCard{
  align-self:center;
  justify-self:end;
  max-width:520px;
  padding:32px;
  background:rgba(255,255,255,.96);
  box-shadow:var(--shadow-lg, 0 24px 60px rgba(16,24,40,.10));
}

.loginBrand{
  margin-bottom:36px;
}

.loginLogo{
  width:42px;
  height:42px;
  display:block;
  object-fit:contain;
  object-position:center;
  border-radius:11px;
  background:transparent;
  box-shadow:0 12px 26px rgba(15,23,42,.08);
}

.loginBrandName{
  color:var(--text, #141923);
  font-size:18px;
  font-weight:800;
  letter-spacing:-.02em;
}

.loginEyebrow{
  display:inline-flex;
  width:max-content;
  margin-bottom:14px;
  padding:8px 12px;
  border:1px solid rgba(37,99,235,.16);
  border-radius:999px;
  background:var(--accent-soft, #eef4ff);
  color:#2556c7;
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

h1{
  max-width:780px;
  font-size:clamp(38px, 5vw, 64px);
  line-height:.98;
  letter-spacing:-.055em;
  font-weight:800;
  color:var(--text, #141923);
}

p{
  max-width:760px;
  color:var(--muted, #687386);
  font-size:15px;
  line-height:1.65;
  overflow-wrap:anywhere;
}

.loginFeatureGrid{
  gap:12px;
  margin-top:34px;
}

.loginFeature{
  min-height:132px;
  border-color:var(--line, #e6ebf3);
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #fbfcfe);
  box-shadow:var(--shadow-sm, 0 1px 2px rgba(16,24,40,.05));
}

.loginFeatureTitle{
  color:var(--text, #141923);
  font-weight:800;
  letter-spacing:-.02em;
}

.loginFeatureText{
  color:var(--muted, #687386);
  line-height:1.5;
  overflow-wrap:anywhere;
}

.loginTags span,
.apiHint{
  border:1px solid rgba(37,99,235,.16);
  background:var(--accent-soft, #eef4ff);
  color:#2556c7;
  font-weight:800;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.loginCard h2{
  margin:0;
  color:var(--text, #141923);
  font-size:30px;
  line-height:1.08;
  letter-spacing:-.04em;
}

.loginSub{
  margin:8px 0 0;
  font-size:13px;
}

.apiHint{
  margin-top:18px;
}

.loginForm{
  gap:14px;
}

.field span{
  color:var(--muted, #687386);
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.field input,
.phoneInputWrap{
  min-height:48px;
  border-color:var(--line, #e6ebf3);
  border-radius:14px;
  background:rgba(255,255,255,.96);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}

.field input:focus,
.phoneInputWrap:focus-within{
  outline:0;
  border-color:rgba(37,99,235,.45);
  box-shadow:var(--focus-ring, 0 0 0 4px rgba(37,99,235,.12));
}

.phonePrefix{
  color:var(--muted, #687386);
}

.phoneInputWrap input{
  min-height:48px;
  border-left-color:var(--line-2, #edf1f7);
  box-shadow:none;
}

.actionsRow{
  gap:10px;
}

.btn{
  min-height:46px;
  border:1px solid var(--line, #e6ebf3);
  border-radius:999px;
  box-shadow:var(--shadow-sm, 0 1px 2px rgba(16,24,40,.05));
  font-weight:900;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-md, 0 12px 34px rgba(16,24,40,.075));
}

.btnPrimary{
  border-color:transparent;
  background:var(--gradient-primary, linear-gradient(135deg, #2563eb 0%, #625bff 100%));
  color:#fff;
  box-shadow:0 12px 26px rgba(37,99,235,.18);
}

.btnGhost{
  background:#fff;
  color:#3157c8;
  border-color:rgba(37,99,235,.18);
}

.btn:disabled{
  opacity:.58;
  cursor:not-allowed;
  transform:none;
}

.statusBar{
  align-items:center;
  border-color:var(--line, #e6ebf3);
  border-radius:16px;
  background:#fafbfe;
}

#statusText{
  color:var(--muted, #687386);
}

.statusBadge{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border:1px solid #dce6f8;
  border-radius:999px;
  background:#eef4ff;
  color:#2556c7;
  font-size:11px;
  font-weight:900;
}

.loginFoot{
  color:var(--muted, #687386);
}

.loginFoot a{
  color:var(--accent, #2563eb);
}

@media (max-width: 980px){
  .loginShell{
    width:calc(100vw - 36px);
    grid-template-columns:1fr;
    padding:18px 0;
  }

  .loginCard{
    justify-self:stretch;
    max-width:none;
  }

  .loginFeatureGrid{
    grid-template-columns:1fr;
  }

  h1{
    font-size:40px;
    letter-spacing:-.04em;
  }
}

@media (max-width: 560px){
  .loginShell{
    width:100vw;
    max-width:100vw;
    padding:14px;
    gap:14px;
    justify-items:stretch;
  }

  .loginHero,
  .loginCard{
    width:calc(100vw - 28px);
    max-width:calc(100vw - 28px);
    border-radius:22px;
  }

  .loginHero,
  .loginCard{
    padding:22px 18px;
  }

  .loginBrand{
    margin-bottom:24px;
  }

  h1{
    font-size:30px;
    line-height:1.04;
    overflow-wrap:anywhere;
  }

  p{
    font-size:14px;
  }

  .loginHero h1,
  .loginHero p,
  .loginFeatureText{
    width:calc(100vw - 92px);
    max-width:100%;
  }

  .loginOrbitVisual,
  .loginFeature,
  .loginTags,
  .loginForm,
  .statusBar,
  .loginFoot{
    width:100%;
  }

  .loginFeature{
    min-height:auto;
  }

  .actionsRow,
  .loginFoot,
  .statusBar{
    display:grid;
    grid-template-columns:1fr;
  }

  .btn{
    width:100%;
  }
}

/* ===== Premium CLiKIN OTP orchestration visual ===== */
.loginOrbitVisual{
  width:100%;
  margin:22px 0 4px;
  padding:12px;
  overflow:hidden;
  border:1px solid rgba(230,235,243,.92);
  border-radius:26px;
  background:
    linear-gradient(rgba(37,99,235,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.035) 1px, transparent 1px),
    rgba(255,255,255,.62);
  background-size:28px 28px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78);
}

.loginOrbitVisual svg{
  display:block;
  width:100%;
  height:auto;
}

.loginShell,
.loginHero,
.loginCard,
.loginFeature,
.phoneInputWrap,
.statusBar{
  max-width:100%;
}

.loginShell{
  overflow:hidden;
}

h1,
p{
  max-width:100%;
}

.apiHint{
  display:flex;
  width:100%;
}

.loginHero{
  min-height:calc(100dvh - 64px);
}

.loginCard{
  border-radius:30px;
}

.loginCard::after{
  content:"";
  position:absolute;
  right:-84px;
  bottom:-96px;
  width:240px;
  height:240px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(37,99,235,.10), rgba(98,91,255,.05) 44%, transparent 70%);
  pointer-events:none;
}

.loginCard > *{
  position:relative;
  z-index:1;
}

@media (max-width: 980px){
  .loginHero{
    min-height:auto;
  }
}

@media (max-width: 560px){
  .loginOrbitVisual{
    margin-top:16px;
    padding:8px;
    border-radius:20px;
  }

  .loginShell{
    width:100vw !important;
    max-width:100vw !important;
    padding:14px !important;
    overflow:hidden !important;
    grid-template-columns:minmax(0, 1fr) !important;
  }

  .loginHero,
  .loginCard{
    width:calc(100vw - 28px) !important;
    max-width:calc(100vw - 28px) !important;
    min-width:0 !important;
  }

  .loginHero h1,
  .loginHero p,
  .loginFeatureText{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    white-space:normal !important;
    overflow-wrap:break-word !important;
  }

  .loginOrbitVisual,
  .loginFeatureGrid,
  .loginFeature,
  .loginTags{
    width:100% !important;
    max-width:100% !important;
  }
}
