
  :root {
    --navy:    #003087;
    --navy-d:  #001f5b;
    --navy-l:  #1a4fa0;
    --navy-xl: #e8f0fe;
    --white:   #ffffff;
    --bg:      #f0f2f8;
    --border:  #d4d9ee;
    --text:    #0d1b3e;
    --text2:   #2d3f6b;
    --text3:   #6b7da8;
    --green:   #059669;
    --green-l: #ecfdf5;
    --red:     #dc2626;
    --red-l:   #fef2f2;
    --gold:    #b8960c;
    --gold-l:  #fefce8;
    --shadow:  0 2px 8px rgba(0,48,135,.08), 0 8px 32px rgba(0,48,135,.06);
  }
  * { margin:0; padding:0; box-sizing:border-box; }

  body {
    font-family: 'Barlow', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
  }

  /* ── PANEL IZQUIERDO ── */
  .left {
    width: 52%;
    background: var(--navy);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    overflow: hidden;
  }

  /* Patrón geométrico sutil */
  .left::before {
    content: '';
    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;
  }

  .left::after {
    content: '';
    position: absolute;
    bottom: -120px; right: -120px;
    width: 480px; height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  }

  .brand { position: relative; z-index: 1; }

  .brand-top {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 64px;
  }

  .brand-emblem {
    width: 56px; height: 56px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(4px);
  }

  .brand-name-block { }
  .brand-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
  }
  .brand-tagline {
    font-size: 11px;
    color: rgba(255,255,255,.5);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 2px;
  }

  .left-headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 52px;
    line-height: 1.05;
    color: white;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
  }

  .left-headline em {
    font-style: italic;
    color: rgba(255,255,255,.5);
    font-weight: 300;
  }

  .left-desc {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 40px;
  }

  .feature-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
  }

  .chip {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255,255,255,.8);
    backdrop-filter: blur(4px);
  }

  .brands-strip {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 20px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  .brand-pill {
    padding: 8px 16px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: white;
    letter-spacing: 1px;
  }

  .brands-label {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
  }

  /* ── PANEL DERECHO ── */
  .right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
  }

  .login-box {
    width: 100%; max-width: 420px;
  }

  .login-welcome {
    margin-bottom: 32px;
  }

  .login-welcome h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--text);
    letter-spacing: -.5px;
    margin-bottom: 4px;
  }

  .login-welcome p {
    font-size: 14px;
    color: var(--text3);
  }

  /* TABS */
  .access-tabs {
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--bg); border-radius: 10px;
    padding: 4px; gap: 4px; margin-bottom: 28px;
  }

  .acc-tab {
    padding: 11px;
    border-radius: 8px; border: none;
    font-family: 'Barlow', sans-serif;
    font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .2s;
    color: var(--text3); background: transparent;
    display: flex; align-items: center; justify-content: center; gap: 6px;
  }

  .acc-tab.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 1px 6px rgba(0,48,135,.12);
  }

  /* FORM */
  .form-group { margin-bottom: 18px; }

  .form-label {
    display: block;
    font-size: 11px; font-weight: 700;
    color: var(--text2); letter-spacing: .5px;
    text-transform: uppercase; margin-bottom: 7px;
  }

  .input-wrap { position: relative; }

  .input-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    font-size: 16px; pointer-events: none;
  }

  .form-input {
    width: 100%;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 10px; padding: 12px 14px 12px 42px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px; color: var(--text);
    outline: none; transition: all .2s;
  }

  .form-input:focus {
    border-color: var(--navy); background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,48,135,.08);
  }

  .form-input::placeholder { color: var(--text3); }

  .btn-login {
    width: 100%; padding: 14px;
    border-radius: 10px; border: none;
    background: var(--navy); color: white;
    font-family: 'Barlow', sans-serif;
    font-size: 15px; font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 4px;
  }

  .btn-login:hover {
    background: var(--navy-l);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0,48,135,.25);
  }

  .btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

  .btn-guest {
    width: 100%; padding: 13px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--white); color: var(--text2);
    font-family: 'Barlow', sans-serif;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }

  .btn-guest:hover { border-color: var(--navy); color: var(--navy); }

  .error-box {
    background: var(--red-l); border: 1px solid #fecaca;
    border-radius: 8px; padding: 10px 14px;
    font-size: 13px; color: var(--red);
    margin-top: 12px; display: none;
  }

  .guest-notice {
    background: var(--gold-l); border: 1px solid #fde68a;
    border-radius: 8px; padding: 12px 14px;
    font-size: 12px; color: var(--gold);
    margin-bottom: 20px;
    display: flex; gap: 8px; align-items: flex-start;
    line-height: 1.6;
  }

  .divider {
    display: flex; align-items: center; gap: 10px;
    margin: 20px 0; color: var(--text3); font-size: 12px;
  }
  .divider::before, .divider::after {
    content: ''; flex:1; height:1px; background: var(--border);
  }

  #loginPanel, #guestPanel { display:none; }
  #loginPanel.show, #guestPanel.show { display:block; }

  .spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: white; border-radius: 50%;
    animation: spin .7s linear infinite; display: none;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  @media (max-width: 768px) {
    .left { display: none; }
    .right { padding: 24px; }
  }
