*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --teal:       #0D9488;
      --teal-lt:    #14B8A6;
      --teal-dk:    #0A7267;
      --teal-glow:  rgba(13,148,136,.18);
      --navy:       #0B1628;
      --navy-lt:    #112240;
      --navy-mid:   #1A3354;
      --blue-mid:   #1E3A5F;
      --slate:      #64748B;
      --slate-lt:   #94A3B8;
      --sky:        #E0F2FE;
      --white:      #FFFFFF;
      --off-white:  #F8FAFC;
      --border:     #1E3A5F;
      --border-lt:  #CBD5E1;
      --orange:     #F97316;
    }

    html, body {
      height: 100%;
      font-family: 'Instrument Sans', sans-serif;
      background: var(--navy);
      color: var(--white);
      overflow: hidden;
    }

    /* ══════════════════════════════════════════
       FULL LAYOUT
    ══════════════════════════════════════════ */
    .page {
      height: 100vh;
      display: grid;
      grid-template-columns: 58% 42%;
      position: relative;
    }

    /* ══════════════════════════════════════════
       LEFT — immersive dark sales panel
    ══════════════════════════════════════════ */
    .left {
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 48px 60px;
      background: var(--navy);
    }

    /* Diagonal background split */
    .left::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background:
        radial-gradient(ellipse 55% 55% at 85% 15%, rgba(13,148,136,.14) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 10% 90%, rgba(13,148,136,.10) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 50% 50%, rgba(30,58,95,.6) 0%, transparent 70%);
    }

    /* Dot-matrix pattern overlay */
    .left::after {
      content: '';
      position: absolute; inset: 0;
      background-image: radial-gradient(circle, rgba(13,148,136,.18) 1px, transparent 1px);
      background-size: 28px 28px;
      mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 80%);
    }

    /* Animated teal accent beam */
    .beam {
      position: absolute;
      top: 0; bottom: 0;
      width: 1px;
      background: linear-gradient(to bottom, transparent, var(--teal), transparent);
      opacity: 0;
      animation: beamSlide 8s ease-in-out infinite;
    }
    .beam-1 { left: 30%;  animation-delay: 0s; }
    .beam-2 { left: 65%;  animation-delay: 3s; }
    .beam-3 { left: 80%;  animation-delay: 5.5s; }

    @keyframes beamSlide {
      0%   { opacity: 0; transform: scaleY(0) translateY(-100%); }
      20%  { opacity: .25; transform: scaleY(1) translateY(0); }
      80%  { opacity: .15; transform: scaleY(1) translateY(0); }
      100% { opacity: 0; transform: scaleY(0) translateY(100%); }
    }

    /* Floating quote cards (decorative) */
    .quote-card {
      position: absolute;
      background: rgba(255,255,255,.035);
      border: 1px solid rgba(13,148,136,.2);
      border-radius: 10px;
      padding: 12px 16px;
      backdrop-filter: blur(4px);
      font-size: 11px;
      color: var(--slate-lt);
      animation: floatCard 6s ease-in-out infinite;
    }

    .quote-card .qc-amount {
      font-family: 'Syne', sans-serif;
      font-size: 16px; font-weight: 700;
      color: var(--teal-lt);
      display: block; margin-bottom: 2px;
    }

    .quote-card .qc-status {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 10px; font-weight: 500;
    }

    .qc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); display: inline-block; }
    .qc-dot.orange { background: var(--orange); }

    .quote-card-1 { top: 18%; right: 48px; animation-delay: 0s; }
    .quote-card-2 { top: 44%; right: 72px; animation-delay: 1.8s; }
    .quote-card-3 { bottom: 24%; right: 32px; animation-delay: 3.2s; }

    @keyframes floatCard {
      0%,100% { transform: translateY(0px); }
      50%      { transform: translateY(-8px); }
    }

    /* ─── Left content ─── */
    .left-content { position: relative; z-index: 2; }

    /* Top brand bar */
    .brand-bar {
      position: relative; z-index: 2;
      display: flex; align-items: center; justify-content: space-between;
    }

    .brand-logo-pill {
      display: flex; align-items: center; gap: 12px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 40px;
      padding: 8px 16px 8px 8px;
    }

    .brand-logo-pill .logo-thumb {
      background: var(--white);
      border-radius: 30px;
      padding: 5px 10px;
      display: flex; align-items: center;
    }

    .brand-logo-pill .logo-thumb img {
      height: 26px; width: auto; display: block;
    }

    .brand-logo-pill .pill-label {
      font-family: 'Syne', sans-serif;
      font-size: 11px; font-weight: 600; letter-spacing: .5px;
      color: rgba(255,255,255,.7);
    }

    .status-chip {
      display: flex; align-items: center; gap: 6px;
      background: rgba(13,148,136,.12);
      border: 1px solid rgba(13,148,136,.3);
      border-radius: 30px;
      padding: 6px 14px;
      font-family: 'Syne', sans-serif;
      font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
      color: var(--teal-lt);
    }

    .status-chip-dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: var(--teal-lt);
      animation: chipPulse 2s infinite;
    }

    @keyframes chipPulse {
      0%,100% { box-shadow: 0 0 0 0 rgba(20,184,166,.5); }
      50%      { box-shadow: 0 0 0 5px rgba(20,184,166,0); }
    }

    /* Headline block */
    .headline-block {
      position: relative; z-index: 2;
      padding: 0;
    }

    .hl-tag {
      font-family: 'Syne', sans-serif;
      font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
      color: var(--teal);
      margin-bottom: 18px;
      display: flex; align-items: center; gap: 10px;
    }

    .hl-tag::after {
      content: '';
      flex: 1; max-width: 40px; height: 1px;
      background: var(--teal);
      display: block;
    }

    .headline-block h1 {
      font-family: 'Syne', sans-serif;
      font-size: clamp(34px, 3.2vw, 52px);
      font-weight: 800;
      line-height: 1.08;
      letter-spacing: -1.5px;
      color: var(--white);
      margin-bottom: 22px;
    }

    .headline-block h1 .accent {
      color: var(--teal-lt);
      font-style: italic;
      font-family: 'Instrument Serif', serif;
      font-size: 1.08em;
      letter-spacing: -1px;
    }

    .headline-block p {
      font-size: 14px; font-weight: 300;
      color: var(--slate-lt); line-height: 1.75;
      max-width: 400px;
    }

    /* Pipeline steps */
    .pipeline {
      position: relative; z-index: 2;
      display: flex; flex-direction: column; gap: 0;
    }

    .pipeline-title {
      font-family: 'Syne', sans-serif;
      font-size: 9px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
      color: var(--slate); margin-bottom: 16px;
    }

    .pipe-step {
      display: flex; align-items: center; gap: 14px;
      padding: 10px 0;
      position: relative;
    }

    .pipe-step:not(:last-child)::after {
      content: '';
      position: absolute; left: 12px; top: 38px;
      width: 1px; height: calc(100% - 14px);
      background: linear-gradient(to bottom, var(--teal-dk), transparent);
    }

    .pipe-icon {
      width: 26px; height: 26px; border-radius: 50%;
      background: rgba(13,148,136,.15);
      border: 1px solid rgba(13,148,136,.3);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }

    .pipe-icon svg { width: 12px; height: 12px; stroke: var(--teal-lt); stroke-width: 2; fill: none; }

    .pipe-text {
      font-size: 13px; font-weight: 500;
      color: rgba(255,255,255,.75);
    }

    .pipe-text span { color: var(--slate); font-weight: 400; font-size: 11px; display: block; margin-top: 1px; }

    /* ══════════════════════════════════════════
       RIGHT — Login card (white/light)
    ══════════════════════════════════════════ */
    .right {
      background: var(--off-white);
      display: flex; align-items: center; justify-content: center;
      padding: 48px 52px;
      position: relative;
      overflow: hidden;
    }

    /* subtle diagonal stripe background */
    .right::before {
      content: '';
      position: absolute; inset: 0;
      background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 40px,
        rgba(13,148,136,.025) 40px,
        rgba(13,148,136,.025) 41px
      );
    }

    /* teal accent bar on left edge */
    .right::after {
      content: '';
      position: absolute; left: 0; top: 15%; bottom: 15%;
      width: 3px;
      background: linear-gradient(to bottom, transparent, var(--teal), transparent);
      border-radius: 0 3px 3px 0;
    }

    .card {
      width: 100%; max-width: 380px;
      position: relative; z-index: 1;
      animation: cardIn .65s cubic-bezier(.22,1,.36,1) both;
    }

    @keyframes cardIn {
      from { opacity: 0; transform: translateX(20px); }
      to   { opacity: 1; transform: translateX(0); }
    }

    /* Card top — logo + module tag */
    .card-top {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 36px;
    }

    .card-logo-wrap {
      background: var(--white);
      border: 1px solid var(--border-lt);
      border-radius: 10px;
      padding: 9px 16px;
      display: flex; align-items: center;
      box-shadow: 0 1px 4px rgba(0,0,0,.06);
    }

    .card-logo-wrap img { height: 32px; width: auto; display: block; }

    .module-tag {
      display: flex; align-items: center; gap: 6px;
      background: rgba(13,148,136,.08);
      border: 1px solid rgba(13,148,136,.2);
      border-radius: 6px;
      padding: 6px 10px;
      font-family: 'Syne', sans-serif;
      font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
      color: var(--teal-dk);
    }

    .module-tag svg { width: 11px; height: 11px; stroke: var(--teal); stroke-width: 2.5; fill: none; }

    /* Headline */
    .card-headline {
      margin-bottom: 32px;
    }

    .card-headline h2 {
      font-family: 'Syne', sans-serif;
      font-size: 26px; font-weight: 800; letter-spacing: -.5px;
      color: var(--navy); margin-bottom: 7px;
      line-height: 1.2;
    }

    .card-headline p {
      font-size: 13.5px; font-weight: 300;
      color: var(--slate); line-height: 1.6;
    }

    /* ── ALERTS (PHP server messages) ── */
    .alert {
      display: flex; align-items: flex-start; gap: 9px;
      padding: 11px 14px; border-radius: 8px;
      font-size: 13px; margin-bottom: 20px;
      border: 1px solid transparent;
    }
    .alert.error   { background: #FEF2F2; border-color: #FECACA; color: #B91C1C; }
    .alert.success { background: #F0FDF4; border-color: #BBF7D0; color: #166534; }
    .alert svg     { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; flex-shrink: 0; margin-top: 1px; }
    .server-msg    { font-size: 13px; color: #B91C1C; font-weight: 600; margin-bottom: 14px; }

    /* ── FIELDS ── */
    .field { margin-bottom: 18px; }

    .field label {
      display: flex; align-items: center; justify-content: space-between;
      font-family: 'Syne', sans-serif;
      font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
      color: var(--navy); margin-bottom: 8px;
      opacity: .7;
    }

    .input-wrap { position: relative; display: flex; align-items: center; }

    .input-wrap .field-icon {
      position: absolute; left: 14px;
      width: 15px; height: 15px;
      stroke: var(--slate); stroke-width: 1.8; fill: none;
      pointer-events: none; transition: stroke .2s;
    }

    .input-wrap input {
      width: 100%;
      background: var(--white);
      border: 1.5px solid var(--border-lt);
      border-radius: 10px;
      padding: 13px 14px 13px 42px;
      font-family: 'Instrument Sans', sans-serif;
      font-size: 14px; color: var(--navy);
      outline: none;
      transition: border-color .2s, box-shadow .2s;
      box-shadow: 0 1px 3px rgba(0,0,0,.05);
    }

    .input-wrap input::placeholder { color: #B0BAC8; }

    .input-wrap input:focus {
      border-color: var(--teal);
      box-shadow: 0 0 0 3px rgba(13,148,136,.10), 0 1px 3px rgba(0,0,0,.05);
    }

    .input-wrap:has(input:focus) .field-icon { stroke: var(--teal); }

    /* HTML5 native invalid */
    .input-wrap input:user-invalid {
      border-color: #EF4444;
      box-shadow: 0 0 0 3px rgba(239,68,68,.10);
    }

    /* Eye toggle */
    .eye-btn {
      position: absolute; right: 13px;
      background: none; border: none; cursor: pointer;
      color: var(--slate); display: flex; align-items: center;
      transition: color .2s; padding: 3px; border-radius: 4px;
    }
    .eye-btn:hover { color: var(--navy); }
    .eye-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; fill: none; }

    /* ── OPTIONS ── */
    .options {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 26px;
    }

    .checkbox-lbl {
      display: flex; align-items: center; gap: 8px;
      font-size: 13px; color: var(--slate); cursor: pointer;
      user-select: none;
    }

    .checkbox-lbl input[type="checkbox"] { display: none; }

    .chk-box {
      width: 17px; height: 17px;
      border: 1.5px solid var(--border-lt); border-radius: 5px;
      background: var(--white);
      display: flex; align-items: center; justify-content: center;
      transition: border-color .2s, background .2s; flex-shrink: 0;
    }

    .checkbox-lbl input:checked ~ .chk-box { background: var(--teal); border-color: var(--teal); }
    .chk-box svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 3; fill: none; display: none; }
    .checkbox-lbl input:checked ~ .chk-box svg { display: block; }

    .forgot { font-size: 12.5px; color: var(--teal-dk); text-decoration: none; font-weight: 500; transition: color .2s; }
    .forgot:hover { color: var(--teal); }

    /* ── SUBMIT BUTTON ── */
    .btn-login {
      width: 100%; padding: 14px 20px;
      background: linear-gradient(135deg, var(--teal-dk) 0%, var(--teal) 100%);
      border: none; border-radius: 10px;
      font-family: 'Syne', sans-serif;
      font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
      color: var(--white); cursor: pointer;
      position: relative; overflow: hidden;
      transition: transform .12s, box-shadow .2s, filter .2s;
      box-shadow: 0 4px 20px rgba(13,148,136,.3), 0 1px 4px rgba(0,0,0,.1);
      display: flex; align-items: center; justify-content: center; gap: 10px;
    }

    .btn-login::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,.2), transparent 60%);
      opacity: 0; transition: opacity .2s;
    }

    .btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,148,136,.4); filter: brightness(1.05); }
    .btn-login:hover::before { opacity: 1; }
    .btn-login:active { transform: translateY(0); }

    .btn-login svg { width: 15px; height: 15px; stroke: rgba(255,255,255,.8); stroke-width: 2.2; fill: none; }

    /* ripple */
    .ripple {
      position: absolute; border-radius: 50%;
      background: rgba(255,255,255,.25);
      width: 80px; height: 80px;
      transform: scale(0);
      animation: rippleAnim .55s linear;
      pointer-events: none;
    }
    @keyframes rippleAnim { to { transform: scale(5); opacity: 0; } }

    /* ── FOOTER ── */
    .card-footer {
      margin-top: 28px; padding-top: 18px;
      border-top: 1px solid var(--border-lt);
      display: flex; align-items: center; justify-content: space-between;
    }
    .card-footer-copy { font-size: 11px; color: var(--slate-lt); }
    .ver-tag {
      font-family: 'Syne', sans-serif;
      font-size: 10px; font-weight: 700; letter-spacing: 1px;
      color: var(--teal-dk);
      background: rgba(13,148,136,.08);
      border: 1px solid rgba(13,148,136,.15);
      border-radius: 4px;
      padding: 3px 8px;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .page { grid-template-columns: 1fr; }
      .left { display: none; }
      .right { background: var(--off-white); padding: 32px 24px; }
      .right::after { display: none; }
    }