    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --gold:      #C9A84C;
      --gold-lt:   #E8C878;
      --gold-dk:   #9A7A2E;
      --cream:     #FAF7F2;
      --cream-dk:  #F0EBE0;
      --ink:       #1A1714;
      --ink-lt:    #2E2A26;
      --stone:     #6B6560;
      --stone-lt:  #9E9790;
      --divider:   #E0D8CC;
      --white:     #FFFFFF;
      --green:     #2D6A4F;
      --green-lt:  #40916C;
    }

    html, body {
      height: 100%;
      font-family: 'DM Sans', sans-serif;
      background: var(--cream);
      color: var(--ink);
      overflow: hidden;
    }

    /* ══════════════════════════════
       FULL PAGE LAYOUT — centered card
    ══════════════════════════════ */
    .page {
      height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      position: relative;
    }

    /* ══════════════════════════════
       LEFT — warm textured illustration panel
    ══════════════════════════════ */
    .left {
      background: var(--ink);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 52px 56px;
    }

    /* Layered background texture */
    .left::before {
      content: '';
      position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 70% 60% at 20% 80%, rgba(201,168,76,.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 10%, rgba(201,168,76,.10) 0%, transparent 55%),
        radial-gradient(ellipse 90% 90% at 50% 50%, #211D18 0%, #1A1714 100%);
    }

    /* Geometric grid lines */
    .left::after {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(201,168,76,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,168,76,.06) 1px, transparent 1px);
      background-size: 60px 60px;
    }

    /* Floating decorative circles */
    .deco-ring {
      position: absolute;
      border-radius: 50%;
      border: 1px solid rgba(201,168,76,.12);
      animation: slowSpin 30s linear infinite;
    }
    .deco-ring-1 { width: 520px; height: 520px; top: -100px; right: -160px; animation-direction: reverse; }
    .deco-ring-2 { width: 320px; height: 320px; bottom: -60px; left: -80px; }
    .deco-ring-3 { width: 180px; height: 180px; top: 50%; left: 50%; margin: -90px 0 0 -90px; border-color: rgba(201,168,76,.08); }

    @keyframes slowSpin {
      to { transform: rotate(360deg); }
    }

    /* Horizontal rule accent */
    .left-rule {
      position: absolute;
      left: 56px; right: 56px;
      height: 1px;
      background: linear-gradient(90deg, var(--gold), transparent);
      opacity: .4;
    }
    .left-rule-top    { top: 130px; }
    .left-rule-bottom { bottom: 130px; }

    .left-content { position: relative; z-index: 2; }

    /* TOP — logo section */
    .left-top { position: relative; z-index: 2; }

    .brand-lockup {
      display: flex; align-items: center; gap: 16px;
    }

    .brand-logo-wrap {
      background: var(--white);
      border-radius: 3px;
      padding: 8px 14px;
      display: flex; align-items: center;
    }

    .brand-logo-wrap img {
      height: 36px; width: auto; display: block;
    }

    .brand-divider {
      width: 1px; height: 36px;
      background: rgba(201,168,76,.3);
    }

    .brand-label {
      font-family: 'Space Mono', monospace;
      font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
      color: var(--gold);
      line-height: 1.4;
    }

    /* MIDDLE — headline */
    .left-mid {
      position: relative; z-index: 2;
      padding: 0 0 16px;
    }

    .eyebrow {
      font-family: 'Space Mono', monospace;
      font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
      display: flex; align-items: center; gap: 12px;
    }

    .eyebrow::before {
      content: '';
      width: 24px; height: 1px;
      background: var(--gold);
      display: block;
    }

    .left-mid h1 {
      font-family: 'DM Serif Display', serif;
      font-size: clamp(38px, 3.5vw, 56px);
      font-weight: 400;
      line-height: 1.12;
      color: var(--cream);
      margin-bottom: 24px;
    }

    .left-mid h1 em {
      font-style: italic;
      color: var(--gold-lt);
    }

    .left-mid p {
      font-size: 14px; font-weight: 300;
      color: var(--stone-lt); line-height: 1.75;
      max-width: 380px;
    }

    /* Feature pills */
    .features {
      display: flex; flex-wrap: wrap; gap: 8px;
      margin-top: 32px;
    }

    .feature-pill {
      display: flex; align-items: center; gap: 7px;
      background: rgba(201,168,76,.08);
      border: 1px solid rgba(201,168,76,.2);
      border-radius: 40px;
      padding: 7px 14px;
      font-size: 12px; font-weight: 500;
      color: var(--stone-lt);
    }

    .feature-pill svg {
      width: 12px; height: 12px;
      stroke: var(--gold); stroke-width: 2; fill: none;
    }

    /* BOTTOM stats */
    .left-bottom {
      position: relative; z-index: 2;
      display: flex; gap: 32px;
    }

    .stat {
      display: flex; flex-direction: column; gap: 3px;
    }

    .stat-val {
      font-family: 'DM Serif Display', serif;
      font-size: 26px; color: var(--cream);
    }

    .stat-val sup {
      font-family: 'DM Sans', sans-serif;
      font-size: 13px; color: var(--gold);
      vertical-align: super;
    }

    .stat-key {
      font-family: 'Space Mono', monospace;
      font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
      color: var(--stone);
    }

    /* ══════════════════════════════
       RIGHT — login card
    ══════════════════════════════ */
    .right {
      background: var(--cream);
      display: flex; align-items: center; justify-content: center;
      padding: 48px 56px;
      position: relative;
    }

    /* subtle noise texture overlay */
    .right::before {
      content: '';
      position: absolute; inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
      pointer-events: none;
      opacity: .5;
    }

    .card {
      width: 100%; max-width: 400px;
      position: relative; z-index: 1;
      animation: fadeSlide .7s cubic-bezier(.22,1,.36,1) both;
    }

    @keyframes fadeSlide {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* Card header */
    .card-header {
      margin-bottom: 40px;
    }

    .card-tag {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--gold);
      border-radius: 3px;
      padding: 4px 10px;
      font-family: 'Space Mono', monospace;
      font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
      color: var(--ink);
      margin-bottom: 20px;
    }

    .card-tag svg { width: 10px; height: 10px; stroke: var(--ink); stroke-width: 2.5; fill: none; }

    .card-header h2 {
      font-family: 'DM Serif Display', serif;
      font-size: 30px; font-weight: 400;
      color: var(--ink);
      margin-bottom: 8px;
      line-height: 1.2;
    }

    .card-header p {
      font-size: 14px; font-weight: 300;
      color: var(--stone); line-height: 1.6;
    }

    /* Divider */
    .card-rule {
      width: 100%; height: 1px;
      background: var(--divider);
      margin: 28px 0;
    }

    /* ── FIELDS ── */
    .field { margin-bottom: 20px; }

    .field label {
      display: flex; align-items: center; justify-content: space-between;
      font-family: 'Space Mono', monospace;
      font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
      color: var(--stone); margin-bottom: 9px;
    }

    .input-wrap { position: relative; display: flex; align-items: center; }

    .input-wrap .field-icon {
      position: absolute; left: 15px;
      width: 15px; height: 15px;
      stroke: var(--stone-lt); 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(--divider);
      border-radius: 10px;
      padding: 14px 14px 14px 44px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px; color: var(--ink);
      outline: none;
      transition: border-color .2s, box-shadow .2s;
      box-shadow: 0 1px 3px rgba(0,0,0,.04);
    }

    .input-wrap input::placeholder { color: #BDB8B0; }

    .input-wrap input:focus {
      border-color: var(--gold);
      box-shadow: 0 0 0 3px rgba(201,168,76,.12), 0 1px 3px rgba(0,0,0,.04);
    }

    .input-wrap:has(input:focus) .field-icon { stroke: var(--gold-dk); }

    /* HTML5 native invalid highlight */
    .input-wrap input:user-invalid {
      border-color: #C0392B;
      box-shadow: 0 0 0 3px rgba(192,57,43,.10);
    }

    /* password eye toggle */
    .eye-btn {
      position: absolute; right: 14px;
      background: none; border: none; cursor: pointer;
      color: var(--stone-lt); display: flex; align-items: center;
      transition: color .2s; padding: 2px;
      border-radius: 4px;
    }
    .eye-btn:hover { color: var(--ink); }
    .eye-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }

    /* ── OPTIONS ROW ── */
    .options {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 28px;
    }

    .checkbox-lbl {
      display: flex; align-items: center; gap: 9px;
      font-size: 13px; color: var(--stone); cursor: pointer;
      user-select: none;
    }

    .checkbox-lbl input[type="checkbox"] { display: none; }

    .chk-box {
      width: 17px; height: 17px;
      border: 1.5px solid var(--divider); border-radius: 5px;
      background: var(--white);
      display: flex; align-items: center; justify-content: center;
      transition: border-color .2s, background .2s; flex-shrink: 0;
      box-shadow: 0 1px 2px rgba(0,0,0,.06);
    }

    .checkbox-lbl input:checked ~ .chk-box {
      background: var(--gold); border-color: var(--gold);
    }

    .chk-box svg { width: 10px; height: 10px; stroke: var(--ink); stroke-width: 3; fill: none; display: none; }
    .checkbox-lbl input:checked ~ .chk-box svg { display: block; }

    .forgot {
      font-size: 13px; color: var(--gold-dk);
      text-decoration: none; font-weight: 500;
      transition: color .2s;
    }
    .forgot:hover { color: var(--gold); }

    /* ── SUBMIT BUTTON ── */
    .btn-login {
      width: 100%; padding: 15px 24px;
      background: var(--ink);
      border: none; border-radius: 10px;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px; font-weight: 600; letter-spacing: .5px;
      color: var(--cream); cursor: pointer;
      position: relative; overflow: hidden;
      transition: background .2s, transform .12s, box-shadow .2s;
      box-shadow: 0 4px 20px rgba(26,23,20,.18);
      display: flex; align-items: center; justify-content: center; gap: 10px;
    }

    .btn-login::before {
      content: '';
      position: absolute; inset: 0;
      background: linear-gradient(135deg, rgba(201,168,76,.15), transparent 60%);
      opacity: 0; transition: opacity .2s;
    }

    .btn-login:hover { background: var(--ink-lt); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(26,23,20,.22); }
    .btn-login:hover::before { opacity: 1; }
    .btn-login:active { transform: translateY(0); }

    .btn-login svg { width: 16px; height: 16px; stroke: var(--gold); stroke-width: 2; fill: none; flex-shrink: 0; }

    /* ripple */
    .ripple {
      position: absolute; border-radius: 50%;
      background: rgba(201,168,76,.25);
      width: 80px; height: 80px;
      transform: scale(0);
      animation: rippleAnim .55s linear;
      pointer-events: none;
    }
    @keyframes rippleAnim { to { transform: scale(5); opacity: 0; } }

    /* ── SERVER ALERTS (PHP) ── */
    .alert {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 12px 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: #15803D; }
    .alert svg     { width: 15px; height: 15px; 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; }

    /* ── FOOTER ── */
    .card-footer {
      margin-top: 32px;
      display: flex; align-items: center; justify-content: space-between;
    }

    .card-footer-copy {
      font-size: 12px; color: var(--stone-lt);
    }

    .secure-badge {
      display: flex; align-items: center; gap: 5px;
      font-family: 'Space Mono', monospace;
      font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
      color: var(--green);
    }

    .secure-badge svg { width: 11px; height: 11px; stroke: var(--green); stroke-width: 2.5; fill: none; }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .page { grid-template-columns: 1fr; }
      .left { display: none; }
      .right { padding: 32px 24px; background: var(--cream); }
    }