/* Kllivo developer portal - split-screen layout shared with the sign-in page design. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --panel-bg: #0a0a0a;
  --panel-mid: #1f4b5c;
  --panel-accent: #3fe0c5;
  --bg: #f9f9f8;
  --white: #fff;
  --border: #e8e8e6;
  --border-2: #d4d4d2;
  --text: #0d0d0c;
  --muted: #6a6a67;
  --subtle: #a6a6a3;
  --accent: #1f4b5c;
  --accent-h: #163842;
  --accent-bg: rgba(31, 75, 92, .08);
  --error: #c0392b;
  --error-bg: rgba(192, 57, 43, .05);
  --success: #16a34a;
  --r: 9px;
  --font: 'DM Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

html, body { height: 100%; overflow: hidden; }
body { font-family: var(--font); background: var(--panel-bg); color: var(--text); display: flex; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* ── Left panel ─────────────────────────────────────────── */
.left-panel { position: relative; width: 52%; flex-shrink: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--panel-bg); }
.left-panel::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(31, 75, 92, .35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(63, 224, 197, .12) 0%, transparent 55%),
    linear-gradient(160deg, #0f1720 0%, #0a0a0a 50%, #000 100%);
}
.left-panel::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .6; background-size: 180px 180px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
.left-inner { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; padding: 44px 52px; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.orb-1 { width: 380px; height: 380px; background: rgba(31, 75, 92, .25); top: -60px; left: -80px; animation: drift 14s ease-in-out infinite alternate; }
.orb-2 { width: 260px; height: 260px; background: rgba(63, 224, 197, .15); bottom: 80px; right: -40px; animation: drift 18s 3s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 20px) scale(1.05); } }

.l-top { display: flex; align-items: center; justify-content: space-between; opacity: 0; animation: fadeUp .7s .1s cubic-bezier(.16, 1, .3, 1) forwards; }
.l-top img { height: 32px; width: auto; }
.l-badge { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--panel-accent); border: 1px solid rgba(63, 224, 197, .3); padding: 5px 10px; border-radius: 100px; font-weight: 600; }

.l-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 36px; }
.l-headline { font-size: 42px; font-weight: 500; line-height: 1.16; color: rgba(255, 255, 255, .95); margin-bottom: 16px; opacity: 0; animation: fadeUp .8s .25s cubic-bezier(.16, 1, .3, 1) forwards; }
.l-headline .em { color: var(--panel-accent); }
.l-desc { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .45); max-width: 400px; opacity: 0; animation: fadeUp .8s .35s cubic-bezier(.16, 1, .3, 1) forwards; }

.code-card { margin-top: 34px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .03); border-radius: 14px; overflow: hidden; max-width: 460px; backdrop-filter: blur(6px); opacity: 0; animation: fadeUp .8s .45s cubic-bezier(.16, 1, .3, 1) forwards; }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: block; }
.code-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, .4); }
.code-card pre { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: rgba(255, 255, 255, .7); padding: 14px 16px; overflow-x: auto; white-space: pre; }
.tk-k { color: #3fe0c5; } .tk-s { color: #f0c987; } .tk-n { color: #9cb8ff; } .tk-c { color: rgba(255, 255, 255, .32); }

.l-stats { display: flex; gap: 32px; margin-top: 34px; opacity: 0; animation: fadeUp .8s .55s cubic-bezier(.16, 1, .3, 1) forwards; }
.l-stat-val { font-size: 19px; font-weight: 500; color: rgba(255, 255, 255, .9); margin-bottom: 4px; }
.l-stat-label { font-size: 11px; color: rgba(255, 255, 255, .34); letter-spacing: .05em; text-transform: uppercase; font-weight: 500; }

/* ── Right panel ────────────────────────────────────────── */
.right-panel { flex: 1; min-height: 0; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow-y: auto; position: relative; }
.right-inner { width: 100%; max-width: 420px; padding: 56px 28px; margin-block: auto; }
.m-logo { display: none; margin-bottom: 32px; }
.m-logo img { height: 30px; width: auto; }

.r-head { margin-bottom: 26px; opacity: 0; animation: fadeUp .6s .1s cubic-bezier(.16, 1, .3, 1) forwards; }
.r-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.r-title { font-size: 28px; font-weight: 600; color: var(--text); line-height: 1.2; margin-bottom: 6px; }
.r-sub { font-size: 14px; color: var(--muted); line-height: 1.5; }
.r-form { opacity: 0; animation: fadeUp .6s .18s cubic-bezier(.16, 1, .3, 1) forwards; }
.hide { display: none !important; }

.field { margin-bottom: 14px; }
.label { display: block; font-size: 12.5px; font-weight: 500; margin-bottom: 7px; }
.label small { font-weight: 400; color: var(--subtle); margin-left: 4px; }
.input, .textarea {
  width: 100%; padding: 0 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r);
  font-family: var(--font); font-size: 14px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
.input { height: 42px; }
.textarea { padding: 11px 14px; min-height: 104px; resize: vertical; line-height: 1.5; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.input::placeholder, .textarea::placeholder { color: var(--subtle); font-size: 13.5px; }
.input:hover:not(:focus), .textarea:hover:not(:focus) { border-color: var(--border-2); }
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-bg); }
.input.err, .textarea.err { border-color: var(--error); box-shadow: 0 0 0 3.5px var(--error-bg); }
.hint { font-size: 12px; color: var(--subtle); margin-top: 6px; line-height: 1.45; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; margin: 4px 0 18px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

.err-strip { display: none; align-items: flex-start; gap: 8px; background: var(--error-bg); border: 1px solid rgba(192, 57, 43, .15); border-radius: var(--r); padding: 10px 13px; margin-bottom: 16px; font-size: 13px; color: var(--error); line-height: 1.4; }
.err-strip.show { display: flex; }
.err-strip svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

.btn-primary {
  width: 100%; height: 42px; background: var(--accent); border: none; border-radius: var(--r); font-family: var(--font); font-size: 14px; font-weight: 500;
  color: #fff; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s; display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-bottom: 14px; outline: none; box-shadow: 0 1px 2px rgba(31, 75, 92, .25), 0 4px 12px rgba(31, 75, 92, .18); text-decoration: none;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-h); box-shadow: 0 2px 4px rgba(31, 75, 92, .3), 0 8px 20px rgba(31, 75, 92, .22); }
.btn-primary:active:not(:disabled) { transform: scale(.99); }
.btn-primary:disabled { background: var(--border); color: var(--subtle); cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  width: 100%; height: 42px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); font-family: var(--font); font-size: 13.5px;
  color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 14px; text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: background .12s, border-color .12s, transform .1s;
}
.btn-ghost:hover { background: var(--bg); border-color: var(--border-2); transform: translateY(-1px); }
.btn-row { display: flex; gap: 10px; } .btn-row > * { flex: 1; }
.signup { text-align: center; font-size: 13px; color: var(--muted); }
.signup a { color: var(--text); text-decoration: none; font-weight: 500; }
.signup a:hover { color: var(--accent); }

.pill { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 9px 13px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.pill-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #3fe0c5); color: #fff; font-size: 10px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pill-email { flex: 1; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-change { font-size: 12px; color: var(--muted); font-weight: 500; text-decoration: none; background: none; border: 0; cursor: pointer; font-family: inherit; }
.pill-change:hover { color: var(--text); }

.status-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); text-align: center; }
.status-ico { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; background: var(--accent-bg); color: var(--accent); }
.status-ico.ok { background: rgba(22, 163, 74, .1); color: var(--success); }
.status-ico.bad { background: var(--error-bg); color: var(--error); }
.status-ico svg { width: 22px; height: 22px; }
.status-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.status-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.note-box { margin-top: 12px; text-align: left; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* App console */
.app-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.app-item { background: var(--white); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; }
.app-item .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.app-item .m { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 6px; word-break: break-all; }
.tag { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: 3px 8px; border-radius: 100px; background: var(--accent-bg); color: var(--accent); }
.tag.bad { background: var(--error-bg); color: var(--error); }
.cred { background: #0f1720; color: #e8f1f3; border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.cred .row { margin-bottom: 10px; } .cred .row:last-child { margin-bottom: 0; }
.cred .k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 4px; }
.cred .v { font-family: var(--mono); font-size: 12px; word-break: break-all; display: flex; gap: 8px; align-items: flex-start; }
.cred .v span { flex: 1; }
.cred button { background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 6px; font-size: 11px; padding: 4px 8px; cursor: pointer; font-family: inherit; }
.cred button:hover { background: rgba(255, 255, 255, .18); }
.cred .warn { margin-top: 10px; font-size: 12px; color: #f0c987; }
.scopes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.scope { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; font-size: 13px; cursor: pointer; }
.scope code { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.scope small { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.scope input { margin-top: 3px; accent-color: var(--accent); }

.r-footer { margin-top: 28px; text-align: center; }
.r-footer p { font-size: 11.5px; color: var(--subtle); } .r-footer a { color: var(--subtle); text-decoration: none; } .r-footer a:hover { color: var(--muted); }

.spin { display: inline-block; width: 13px; height: 13px; border: 1.5px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: rotate .65s linear infinite; }
.spin-dark { border-color: rgba(0, 0, 0, .12); border-top-color: var(--muted); }
.center { display: flex; justify-content: center; padding: 40px 0; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rotate { to { transform: rotate(360deg); } }

@media (min-width: 901px) {
  body { background: var(--bg); }
  .left-panel { width: calc(52% - 24px); margin: 24px 0 24px 24px; border-radius: 28px; overflow-y: auto; }
}
@media (max-width: 900px) {
  html, body { overflow: auto; } body { flex-direction: column; }
  .left-panel { display: none; }
  .right-panel { min-height: 100vh; justify-content: flex-start; }
  .right-inner { padding: 44px 22px 36px; margin-block: 0; }
  .m-logo { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; opacity: 1 !important; transition: none !important; } }

/* Developer signup: one centered column, with the original form width and page scrolling. */
html, body { height: auto; min-height: 100%; overflow: auto; }
body { min-height: 100vh; display: flex; background: var(--bg); }
.right-panel { width: 100%; flex: 1; min-height: 100vh; align-items: center; justify-content: flex-start; overflow: visible; }
.right-inner { width: 100%; max-width: 420px; padding: 44px 28px 48px; margin: 0 auto; }
.m-logo { display: block; margin-bottom: 28px; }
.step-progress { margin: 0 0 18px; }
.step-progress-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.step-progress-label strong { color: var(--text); font-weight: 600; }
.step-progress-label span { white-space: nowrap; }
.step-track { height: 4px; border-radius: 99px; overflow: hidden; background: #e9edee; }
.step-track span { display: block; width: 50%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .2s ease; }
.step-actions { display: flex; gap: 10px; }
.step-actions .btn-ghost, .step-actions .btn-primary { margin: 0; }
.step-actions .btn-ghost { width: 110px; flex: none; }
.step-actions .btn-primary { flex: 1; }
@media (max-width: 900px) { body { flex-direction: column; } .right-inner { padding: 40px 22px 36px; } }
@media (max-width: 440px) { .right-inner { padding: 32px 20px 30px; } .r-title { font-size: 26px; } }
