/* VideoCode Auth — approved preview design (production) */

:root {
    --bg: #0b0b12;
    --card: #14141f;
    --card-2: #1a1a28;
    --line: rgba(255,255,255,.08);
    --text: #f4f4f8;
    --muted: #9a9ab0;
    --pink: #ff2d78;
    --orange: #ff6b35;
    --violet: #7c5cff;
    --cyan: #2ee6a6;
    --radius: 24px;
    --shadow: 0 30px 80px rgba(0,0,0,.55);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
  }

  /* PAGE LAYOUT */
  .page, .auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
  }

  /* LEFT — visual */
  .visual, .auth-panel {
    position: relative;
    overflow: hidden;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
      linear-gradient(160deg, rgba(11,11,18,.35) 0%, rgba(11,11,18,.75) 55%, rgba(11,11,18,.95) 100%),
      linear-gradient(135deg, rgba(255,45,120,.25), rgba(124,92,255,.2) 50%, transparent 80%),
      #1a1025;
  }

  /* CSS art background — no external image required */
  .visual-art {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .7;
  }
  .blob.a { width: 380px; height: 380px; top: -80px; left: -60px; background: #ff2d78; }
  .blob.b { width: 320px; height: 320px; top: 30%; right: -80px; background: #7c5cff; }
  .blob.c { width: 260px; height: 260px; bottom: 10%; left: 20%; background: #2ee6a6; opacity: .35; }

  .grid-lines {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  }

  /* floating cards mock */
  .showcase {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
  }

  .device {
    width: 210px;
    height: 380px;
    border-radius: 32px;
    padding: 8px;
    background: linear-gradient(160deg, #2a2a3d, #12121c);
    box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.12);
    position: relative;
    transform: rotate(-6deg);
    animation: float 6s ease-in-out infinite;
  }

  .device.second {
    width: 180px;
    height: 320px;
    transform: rotate(8deg) translateY(30px);
    opacity: .92;
    animation-delay: -2s;
  }

  @keyframes float {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-6deg) translateY(-12px); }
  }
  .device.second {
    animation-name: float2;
  }
  @keyframes float2 {
    0%, 100% { transform: rotate(8deg) translateY(30px); }
    50% { transform: rotate(8deg) translateY(18px); }
  }

  .device-in {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, #2d1b3d 0%, #12121c 100%);
  }

  .device.second .device-in {
    background: linear-gradient(180deg, #1b2d3d 0%, #12121c 100%);
  }

  .notch {
    position: absolute;
    top: 10px; left: 50%;
    transform: translateX(-50%);
    width: 52px; height: 6px;
    border-radius: 99px;
    background: rgba(0,0,0,.45);
    z-index: 3;
  }

  .thumb {
    height: 55%;
    background:
      radial-gradient(circle at 30% 40%, rgba(255,45,120,.55), transparent 50%),
      radial-gradient(circle at 70% 60%, rgba(124,92,255,.5), transparent 45%),
      linear-gradient(145deg, #3a1f4a, #1a1a2e);
    position: relative;
    display: grid;
    place-items: center;
  }

  .device.second .thumb {
    background:
      radial-gradient(circle at 40% 50%, rgba(46,230,166,.4), transparent 50%),
      radial-gradient(circle at 70% 30%, rgba(255,107,53,.4), transparent 45%),
      linear-gradient(145deg, #1f3a4a, #1a1a2e);
  }

  .play {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    display: grid; place-items: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 12px 40px rgba(255,45,120,.5);
    padding-left: 3px;
  }

  .device.second .play {
    background: linear-gradient(135deg, var(--cyan), #3b82f6);
    box-shadow: 0 12px 40px rgba(46,230,166,.35);
  }

  .meta {
    padding: 16px 14px;
  }
  .meta h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .meta p {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .bar {
    height: 4px;
    border-radius: 99px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    margin-bottom: 12px;
  }
  .bar i {
    display: block;
    height: 100%;
    width: 35%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--pink), var(--violet));
  }
  .pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .price {
    font-weight: 800;
    font-size: 14px;
    color: #ffd36a;
  }
  .chip {
    font-size: 10px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 99px;
    background: rgba(255,45,120,.15);
    color: #ff8fb8;
    border: 1px solid rgba(255,45,120,.25);
  }

  .visual-copy {
    position: relative;
    z-index: 2;
  }
  .logo-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border-radius: 99px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.1);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
  }
  .logo-pill .mark {
    width: 32px; height: 32px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    font-size: 12px;
  }
  .visual-copy h1 {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    max-width: 12ch;
  }
  .visual-copy h1 span {
    background: linear-gradient(110deg, #fff 10%, #ff8fb8 50%, #b8a4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .visual-copy p {
    color: #c4c4d4;
    font-size: 15px;
    line-height: 1.55;
    max-width: 36ch;
    margin-bottom: 20px;
  }
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .tags span {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: #ddd;
  }
  .footer-note {
    position: relative;
    z-index: 2;
    font-size: 12px;
    color: #6b6b80;
    margin-top: 24px;
  }

  /* RIGHT — form */
  .form-side, .auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background:
      radial-gradient(ellipse 80% 50% at 100% 0%, rgba(124,92,255,.12), transparent 50%),
      radial-gradient(ellipse 60% 40% at 0% 100%, rgba(255,45,120,.08), transparent 50%),
      var(--bg);
  }

  .card, .auth-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, var(--card-2), var(--card));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
  }

  .card::before, .auth-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan));
  }

  /* mobile banner inside card */
  .mobile-banner {
    display: none;
    margin: -32px -28px 24px;
    height: 150px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background:
      radial-gradient(circle at 30% 40%, rgba(255,45,120,.5), transparent 50%),
      radial-gradient(circle at 80% 60%, rgba(124,92,255,.45), transparent 45%),
      linear-gradient(145deg, #3a1f4a, #12121c);
  }
  .mobile-banner .inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, transparent 30%, rgba(20,20,31,.9));
  }
  .mobile-banner .play {
    width: 48px; height: 48px; font-size: 14px;
  }
  .mobile-banner strong { font-size: 16px; font-weight: 800; }
  .mobile-banner small { color: #c4c4d4; font-size: 12px; }

  .card-head, .auth-card-head {
    text-align: center;
    margin-bottom: 24px;
  }
  .card-head .brand {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 16px;
    color: #fff;
    text-decoration: none;
  }
  .card-head .brand .mark {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(255,45,120,.35);
  }
  .card-head h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
  }
  .card-head p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .hint {
    background: rgba(255,45,120,.08);
    border: 1px solid rgba(255,45,120,.18);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    color: #d0d0e0;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .hint a { color: #ff8fb8; font-weight: 600; text-decoration: none; }
  .hint a:hover { text-decoration: underline; }
  .hint strong { color: #fff; }

  label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #c8c8d8;
    margin-bottom: 8px;
  }

  .field {
    position: relative;
    margin-bottom: 16px;
  }
  .field .ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b6b80;
    font-size: 14px;
    pointer-events: none;
    width: 18px;
    text-align: center;
  }
  .field input[type="text"] {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.35);
    color: #fff;
    padding: 0 14px 0 42px;
    font-size: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .field input::placeholder { color: #55556a; }
  .field input:focus {
    border-color: rgba(255,45,120,.5);
    box-shadow: 0 0 0 4px rgba(255,45,120,.12);
  }

  .pin-label {
    text-align: center;
    margin-bottom: 10px;
  }

  .pins {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
  }
  .pins input {
    width: 100%;
    aspect-ratio: 1;
    max-height: 64px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    outline: none;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s, transform .1s;
  }
  .pins input:focus {
    border-color: rgba(124,92,255,.65);
    box-shadow: 0 0 0 4px rgba(124,92,255,.15);
    transform: scale(1.04);
  }

  .btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(110deg, var(--pink) 0%, var(--violet) 55%, #3b82f6 100%);
    background-size: 160% 100%;
    box-shadow: 0 12px 30px rgba(255,45,120,.3);
    transition: transform .15s, filter .15s, background-position .3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    background-position: 100% 0;
  }
  .btn:active { transform: translateY(0); }

  .link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: #ddd;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s;
  }
  .link-btn:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
    color: #fff;
  }

  .foot {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: var(--muted);
  }
  .foot a { color: #ff8fb8; text-decoration: none; font-weight: 600; }
  .foot a:hover { text-decoration: underline; }

  /* RESPONSIVE */
  @media (max-width: 960px) {
    .page, .auth-shell { grid-template-columns: 1fr; }
    .visual, .auth-panel { display: none; }
    .mobile-banner { display: block; }
    .card-head .brand { display: inline-flex; }
    .form-side, .auth-main {
      min-height: 100vh;
      min-height: 100dvh;
      align-items: flex-start;
      padding: 16px 12px 28px;
      padding-top: 64px;
    }
    .card, .auth-card { max-width: 100%; padding: 28px 20px 22px; }
  }

  @media (max-width: 380px) {
    .pins { gap: 8px; }
    .pins input { font-size: 18px; max-height: 56px; }
    .mobile-banner { height: 130px; }
  }


/* Aliases for PHP layout */
.auth-shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 0.9fr; }
.auth-panel { /* filled by .visual */ }
.auth-main { /* filled by .form-side */ }
.auth-card { /* filled by .card */ }
.auth-card-head { /* filled by .card-head */ }
.auth-body .form-label { display: block; font-size: 13px; font-weight: 600; color: #c8c8d8; margin-bottom: 8px; }
.auth-body .form-control {
  width: 100%; height: 50px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(0,0,0,.35); color: #fff; padding: 0 14px 0 42px; font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-body .form-control:focus {
  border-color: rgba(255,45,120,.5);
  box-shadow: 0 0 0 4px rgba(255,45,120,.12);
  background: rgba(0,0,0,.45); color: #fff;
}
.auth-body .form-control::placeholder { color: #55556a; }
.input-wrap { position: relative; margin-bottom: 16px; }
.input-wrap .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #6b6b80; font-size: 14px; pointer-events: none; width: 18px; text-align: center;
}
.pin-digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.pin-digits input, .pin-box {
  width: 100%; aspect-ratio: 1; max-height: 64px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(0,0,0,.35); color: #fff;
  font-size: 22px; font-weight: 800; text-align: center; outline: none; font-family: inherit;
  transition: border-color .15s, box-shadow .15s, transform .1s; padding: 0;
}
.pin-digits input:focus, .pin-box:focus {
  border-color: rgba(124,92,255,.65);
  box-shadow: 0 0 0 4px rgba(124,92,255,.15);
  transform: scale(1.04);
}
.btn-auth {
  width: 100%; height: 52px; border: none; border-radius: 14px; font-family: inherit;
  font-size: 15px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(110deg, var(--pink) 0%, var(--violet) 55%, #3b82f6 100%);
  background-size: 160% 100%; box-shadow: 0 12px 30px rgba(255,45,120,.3);
  transition: transform .15s, filter .15s, background-position .3s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn-auth:hover { filter: brightness(1.08); transform: translateY(-1px); background-position: 100% 0; color: #fff; }
.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px;
  margin-top: 12px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: #ddd; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.help-box { /* same as .hint */ background: rgba(255,45,120,.08); border: 1px solid rgba(255,45,120,.18);
  border-radius: 14px; padding: 12px 14px; font-size: 13px; color: #d0d0e0; line-height: 1.5; margin-bottom: 20px; }
.help-box a { color: #ff8fb8; font-weight: 600; text-decoration: none; }
.help-box a:hover { text-decoration: underline; }
.help-box strong { color: #fff; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.auth-foot a { color: #ff8fb8; text-decoration: none; font-weight: 600; }
.auth-body a { color: #ff8fb8; text-decoration: none; font-weight: 600; }
.auth-body a:hover { text-decoration: underline; }
.alert { border-radius: 14px; border: 1px solid transparent; font-size: 13px; padding: 12px 14px; margin-bottom: 16px; }
.alert-danger { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.3); color: #fecaca; }
.alert-success { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.3); color: #bbf7d0; }
.alert-info { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.28); color: #bfdbfe; }
.step-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .75rem; }
.step-list li { display: grid; grid-template-columns: 32px 1fr; gap: .75rem; align-items: start; font-size: .9rem; color: #cbd5e1; }
.step-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .85rem;
  background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; }

/* map .visual onto .auth-panel when both used */
.auth-panel.visual { /* uses .visual rules via dual class */ }
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
  .auth-main {
    min-height: 100vh; min-height: 100dvh; align-items: flex-start; padding: 16px 12px 28px;
  }
  .auth-card { max-width: 100%; padding: 28px 20px 22px; }
}

.chip.live {
  background: rgba(46,230,166,.12);
  color: #2ee6a6;
  border-color: rgba(46,230,166,.25);
}


@media (min-width: 961px) {
  .desktop-logo, .card-head .brand.desktop-logo { display: inline-flex !important; }
}

