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

    :root {
      --cyan:       #00BCD4;
      --cyan-dark:  #0097A7;
      --cyan-dim:   rgba(0,188,212,0.12);
      --bg:         #060608;
      --bg-right:   #0a0a0c;
      --text:       #FFFFFF;
      --text-2:     #999999;
      --text-3:     #3a3a3a;
      --border-sub: rgba(255,255,255,0.07);
    }

    html, body {
      height: 100%;
      overflow: hidden;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg);
      color: var(--text);
      -webkit-font-smoothing: antialiased;
    }

    .layout {
      display: flex;
      height: 100vh;
      overflow: hidden;
    }

    /* ══════════════════════════ LEFT */
    .left {
      flex: 1;
      position: relative;
      overflow: hidden;
      height: 100vh;
      background: #020a0c;
    }


    /* ── Fondos del carrusel ── */
    .left-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      opacity: 0;
      transition: opacity 1.2s ease;
    }

    .left-bg.active {
      opacity: 1;
    }

    /* ── Fondo 2: Artículos de ley ── */
    .left-bg--articles {
      background: #020a0c;
    }

    /* ── Seal scene: sello judicial ── */
    .seal-scene {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .seal-svg {
      width: min(72vh, 78%);
      height: auto;
      filter: drop-shadow(0 0 60px rgba(0,188,212,0.35)) drop-shadow(0 0 120px rgba(0,188,212,0.15));
    }

    .cat-mosaic {
      position: absolute;
      top: -15%;
      left: -15%;
      right: -15%;
      bottom: -15%;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-auto-rows: 1fr;
      gap: 0.5rem;
      transform: rotate(-8deg);
      transform-origin: center center;
    }

    .cat-tile {
      border-radius: 0.5rem;
      padding: 1rem;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      min-height: 8.125rem;
    }

    .cat-tile h3 {
      font-size: 0.875rem;
      font-weight: 700;
      color: #fff;
      position: relative;
      z-index: 2;
      text-shadow: 0 1px 10px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
      line-height: 1.3;
    }

    .cat-tile i {
      position: absolute;
      bottom: -10px;
      right: -10px;
      font-size: 5rem;
      opacity: 0.25;
      transform: rotate(-15deg);
      z-index: 1;
    }

    .bg-vignette {
      position: absolute;
      inset: 0;
      z-index: 1;
      background:
        linear-gradient(to top,    rgba(2,10,12,0.95) 0%, rgba(2,10,12,0.55) 35%, rgba(2,10,12,0.15) 65%, transparent 100%),
        linear-gradient(to bottom, rgba(2,10,12,0.7)  0%, rgba(2,10,12,0.2) 30%, transparent 55%),
        linear-gradient(to right,  rgba(2,10,12,0.85) 0%, rgba(2,10,12,0.45) 40%, transparent 70%);
      pointer-events: none;
    }

    /* ── Left overlay: logo + hero text */
    .left-overlay {
      position: absolute;
      inset: 0;
      z-index: 2;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 3.25rem 4rem;
      pointer-events: none;
    }


.left-logo {
  position: absolute;
  top: 3rem;
  left: 4rem;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.left-logo img:first-child {
  height:45px;
}

.left-logo img:last-child {
  height: 17px;
  opacity: 0.9;
}

.left-logo img:last-child {
  filter: brightness(0) invert(1) drop-shadow(0 2px 18px rgba(0,188,212,0.28));
}


    .left-text { max-width: 520px; }

    .left-text .eyebrow {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 3.5px;
      color: var(--cyan);
      margin-bottom: 1.25rem;
      opacity: 0.95;
      text-shadow: 0 1px 8px rgba(0,0,0,0.9);
    }

    .left-text h1 {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      font-size: clamp(44px, 4.6vw, 68px);
      font-weight: 900;
      line-height: 1.07;
      letter-spacing: -1px;
      color: #fff;
      margin-bottom: 1.375rem;
      text-shadow:
        0 2px 4px rgba(0,0,0,1),
        0 4px 20px rgba(0,0,0,0.95),
        0 8px 60px rgba(0,0,0,0.9);
    }

    .left-text h1 em {
      font-style: italic;
      color: var(--cyan);
      text-shadow:
        0 2px 4px rgba(0,0,0,1),
        0 0 30px rgba(0,188,212,0.4);
    }

    .left-text .sub {
      font-family: 'Inter', sans-serif;
      font-size: 0.9375rem;
      color: rgba(255,255,255,0.72);
      line-height: 1.75;
      max-width: 400px;
      margin-bottom: 2.375rem;
      font-weight: 300;
      text-shadow: 0 1px 12px rgba(0,0,0,0.95), 0 2px 4px rgba(0,0,0,1);
    }

    /* Feature badges */
    .feature-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 15px;
      border-radius: 100px;
      border: 1px solid rgba(0,188,212,0.22);
      background: rgba(0,188,212,0.05);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.4px;
      color: rgba(255,255,255,0.5);
    }

    .badge i {
      color: var(--cyan);
      font-size: 10px;
      opacity: 0.85;
    }

    /* ══════════════════════════ RIGHT */
    .right {
      width: 28.75rem;
      flex-shrink: 0;
      background: rgba(6,6,8,0.72);
      backdrop-filter: blur(32px);
      -webkit-backdrop-filter: blur(32px);
      border-left: 1px solid rgba(255,255,255,0.07);
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
      position: relative;
    }

    /* Cyan top-edge shimmer más pronunciado */
    .right::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent 0%, rgba(0,188,212,0.6) 40%, rgba(38,198,218,0.8) 50%, rgba(0,188,212,0.6) 60%, transparent 100%);
      pointer-events: none;
    }

    /* Resplandor sutil en la esquina superior izquierda */
    .right::after {
      content: '';
      position: absolute;
      top: -60px;
      left: -60px;
      width: 200px;
      height: 200px;
      background: radial-gradient(circle, rgba(0,188,212,0.06) 0%, transparent 70%);
      pointer-events: none;
    }

    /* ── Form area */
    .form-area {
      flex: 1;
      padding: 0 3.5rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: hidden;
    }

    /* Encabezado del formulario con línea decorativa */
    .form-area h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.875rem;
      font-weight: 700;
      letter-spacing: -0.3px;
      margin-bottom: 4px;
      color: #fff;
    }

    /* Línea decorativa cyan bajo el h2 */
    .form-area h2::after {
      content: '';
      display: block;
      width: 2.25rem;
      height: 2px;
      margin-top: 0.625rem;
      background: linear-gradient(90deg, var(--cyan), transparent);
      border-radius: 2px;
    }

    .form-area .sub {
      font-size: 0.8125rem;
      color: var(--text-2);
      margin-top: 0.5rem;
      margin-bottom: 2.75rem;
      font-weight: 300;
      line-height: 1.6;
    }

    /* ── Fields */
    .field { margin-bottom: 2.125rem; }

    .field-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.625rem;
    }

    .field-header label {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 2px;
      color: rgba(255,255,255,0.5);
    }

    .forgot {
      font-size: 11px;
      color: var(--cyan);
      text-decoration: none;
      font-weight: 600;
      opacity: 0.8;
      transition: opacity .2s;
    }
    .forgot:hover { opacity: 1; text-decoration: underline; }

    /* Underline input wrapper */
    .input-wrap { position: relative; }

    input[type="email"],
    input[type="password"],
    input[type="text"] {
      width: 100%;
      padding: 0.75rem 0;
      background: transparent;
      border: none;
      border-bottom: 1px solid rgba(255,255,255,0.13);
      border-radius: 0;
      color: var(--text);
      font-size: 0.9375rem;
      font-family: 'Inter', sans-serif;
      font-weight: 400;
      outline: none;
      transition: border-color .3s;
    }

    input::placeholder { color: var(--text-3); }

    /* Animated cyan underline on focus */
    .input-wrap::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 0%;
      height: 1px;
      background: linear-gradient(90deg, var(--cyan), var(--cyan-dark));
      transition: width .35s cubic-bezier(.4,0,.2,1);
    }

    .input-wrap:focus-within::after { width: 100%; }

    input:focus { border-bottom-color: transparent; }

    /* ── Login button */
    .btn-login {
      width: 100%;
      padding: 1rem;
      background: linear-gradient(90deg, #00BCD4 0%, #26C6DA 50%, #00BCD4 100%);
      background-size: 200% 100%;
      color: #000;
      font-size: 11px;
      font-weight: 800;
      font-family: 'Inter', sans-serif;
      letter-spacing: 2.5px;
      text-transform: uppercase;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      transition: background-position .4s ease, transform .15s, box-shadow .3s;
      margin-top: 0.75rem;
      margin-bottom: 2.25rem;
      box-shadow: 0 4px 24px rgba(0,188,212,0.20);
    }

    .btn-login:hover {
      background-position: 100% 0;
      transform: translateY(-1px);
      box-shadow: 0 8px 32px rgba(0,188,212,0.38);
    }

    .btn-login:active { transform: translateY(0); }

    /* ── Separator */
    .sep {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1rem;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--text-3);
    }

    .sep::before, .sep::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255,255,255,0.06);
    }

    /* ── OAuth button */
    .btn-oauth {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.625rem;
      padding: 0.75rem 1rem;
      border-radius: 3px;
      border: 1px solid rgba(255,255,255,0.08);
      background: rgba(255,255,255,0.02);
      color: var(--text-2);
      font-size: 0.8125rem;
      font-weight: 600;
      font-family: 'Inter', sans-serif;
      cursor: pointer;
      transition: border-color .2s, background .2s, color .2s;
      margin-bottom: 0.5rem;
    }

    .btn-oauth:hover {
      border-color: rgba(0,188,212,0.32);
      color: var(--text);
      background: rgba(0,188,212,0.05);
    }

    /* ── Register link */
    .reg {
      text-align: center;
      font-size: 0.8125rem;
      color: var(--text-2);
      margin-top: 0.875rem;
      font-weight: 300;
    }

    .reg a {
      color: var(--cyan);
      font-weight: 700;
      text-decoration: none;
      transition: opacity .2s;
    }
    .reg a:hover { opacity: 0.75; text-decoration: underline; }

    /* ── Responsive */
    @media (max-width: 860px) {

      /* Desbloquear scroll en móvil */
      html, body {
        height: auto;
        overflow: visible;
        overflow-x: hidden;
      }

      /* Layout: columna vertical — mosaico arriba, form abajo */
      .layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
      }

      /* Panel izquierdo: franja superior fija */
      .left {
        flex: none;
        width: 100%;
        height: 13.75rem;
        overflow: hidden;
        position: relative;
      }

      /* Mosaico: ajustar para que llene bien el strip horizontal */
      .cat-mosaic {
        top: -20%;
        left: -10%;
        right: -10%;
        bottom: -20%;
      }

      /* Ocultar el texto overlay en móvil — solo se ve el mosaico */
      .left-overlay {
        display: none;
      }

      /* Vignette en móvil: más fuerte abajo para transición suave al form */
      .bg-vignette {
        background:
          linear-gradient(to top,    rgba(2,10,12,1) 0%, rgba(2,10,12,0.6) 30%, transparent 70%),
          linear-gradient(to bottom, rgba(2,10,12,0.6) 0%, transparent 40%),
          linear-gradient(to right,  rgba(2,10,12,0.3) 0%, transparent 60%);
      }

      /* Panel derecho: ocupa el resto, sin cortar contenido */
      .right {
        width: 100%;
        height: auto;
        min-height: 0;
        flex: 1;
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-left: none;
        border-top: none;
        overflow: visible;
      }

      /* Quitar el resplandor de esquina en móvil */
      .right::after { display: none; }

      /* Línea cyan superior también en móvil */
      .right::before {
        display: block;
      }

      /* Form area en móvil: padding generoso, todo visible */
      .form-area {
        justify-content: flex-start;
        padding: 2.75rem 3.25rem 4.5rem;
        overflow: visible;
        flex: none;
      }

      /* Título más grande en móvil */
      .form-area h2 {
        font-size: 2rem;
        margin-bottom: 4px;
      }

      .form-area h2::after {
        width: 2.5rem;
        margin-top: 0.75rem;
        margin-bottom: 0;
      }

      /* Subtítulo más visible */
      .form-area .sub {
        font-size: 0.875rem;
        margin-top: 0.625rem;
        margin-bottom: 2.5rem;
        color: rgba(255,255,255,0.5);
      }

      /* Campos con más espacio */
      .field { margin-bottom: 2rem; }

      /* Botón login: tamaño cómodo para dedos */
      .btn-login {
        padding: 1.125rem;
        font-size: 0.75rem;
        letter-spacing: 2.5px;
        margin-top: 1rem;
        margin-bottom: 2rem;
        border-radius: 6px;
      }

      /* OAuth button */
      .btn-oauth {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        border-radius: 6px;
        margin-bottom: 0.75rem;
      }

      /* Separador */
      .sep {
        margin-bottom: 1.25rem;
        font-size: 10px;
      }

      /* Texto de registro */
      .reg {
        font-size: 0.875rem;
        margin-top: 1.25rem;
      }

    }
