:root {
  /* Colores mockup */
  --bg: #DAD5D3;
  --blue1: #227C9D;
  --blue2: #19586F;
  --black: #051014;

  /* SPLIT exacto tipo mockup */
  --leftW: 62.5vw;
  --rightW: 37.5vw;

  /* ZONA CENTRAL (Ajustes de alineación) */
  --centerLeftPadding: 90px;
  --centerTop: 50%;

  /* Logo */
  --logoIcon: 192px;
  --logoText: 55px;

  /* Botón */
  --btnW: 280px;
  --btnH: 38px;

  /* ===== AJUSTE DE LOS TOPOS (FONDO) ===== */
  --topoOpacity: .8;
  --topoTLW: 550px;

  /* CORRECCIÓN AQUÍ: */
  /* Antes estaba en -520px y -360px (muy escondido). */
  /* Los ponemos menos negativos para que la imagen "entre" en la pantalla */
  --topoTLX: -30px; 
  --topoTLY: -20px;

  /* Ajuste del topo inferior por si acaso */
  --topoBRW: 750px;
  --topoBRX: auto;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Layout */
.page {
  width: 100vw;
  height: 100vh;
  display: flex;
  overflow: hidden;
  background: var(--bg);
}

.panel {
  position: relative;
  overflow: hidden;
}

.panel--left {
  width: var(--leftW);
  min-width: 880px;
  background: var(--bg);
}

.panel--right {
  width: var(--rightW);
  flex: 1;
}

/* Imagen derecha */
.hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ===== Topos (fondo) ===== */
.topo {
  position: absolute;
  height: auto;
  pointer-events: none;
  opacity: var(--topoOpacity);
  z-index: 0;
}

.topo--tl {
  width: var(--topoTLW);
  left: var(--topoTLX);
  top: var(--topoTLY);
}

.topo--br {
  position: absolute;
  width: var(--topoBRW);
  /* Lo pegamos a la derecha y abajo para que salga de la esquina */
  right: -300px;  
  bottom: -20px;
  /* Anulamos left/top si estaban puestos antes */
  left: auto;
  top: auto; 
  
  opacity: var(--topoOpacity);
  pointer-events: none;
  z-index: 0;
}

/* ===== CenterZone: Alineación flexible ===== */
.centerZone {
  position: absolute;
  left: var(--centerLeftPadding);
  top: var(--centerTop);
  transform: translateY(-50%);
  z-index: 2;

  display: flex;
  flex-direction: row;
  align-items: center;
  
  /* Espacio entre el logo y el formulario */
  gap: 8vw;

  max-width: calc(100% - (var(--centerLeftPadding) * 2));
  padding-right: 40px;
}

/* ===== Brand zone ===== */
.brandZone {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 0 0 auto;
}

.brandZone__icon {
  width: var(--logoIcon);
  height: var(--logoIcon);
  object-fit: contain;
  transform: none;
}

.brandZone__name {
  margin: 0;
  font-family: "Alkatra", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--logoText);
  color: var(--blue1);
  letter-spacing: .2px;
  line-height: 1;
}

/* ===== Login zone ===== */
.loginZone {
  flex: 1;
  max-width: 480px;
  min-width: 300px;
}

/* Campos */
.field { margin-bottom: 18px; }

.field__row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  width: 100%; 
}

.icon {
  width: 15px;
  height: 15px;
  fill: var(--blue1);
  opacity: .95;
  flex: 0 0 auto;
}

.input {
  flex: 1;      
  width: auto; 
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  color: var(--blue2);
  padding: 12px 0;
}

.input::placeholder {
  color: var(--blue2);
  opacity: .85;
}

.line {
  height: 2px;
  width: 100%; 
  background: var(--blue1);
  opacity: .9;
  margin-top: 2px;
}

/* ojo */
.eye {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px;
}
.eye__icon {
  width: 18px;
  height: 18px;
  fill: var(--blue1);
  opacity: .85;
}

/* Acciones */
.actions {
  display: grid;
  grid-template-columns: 1fr var(--btnW);
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}

.forgot {
  font-size: 11px;
  color: var(--blue2);
  text-decoration: none;
  white-space: nowrap;
}
.forgot:hover { text-decoration: underline; }

.btn {
  width: var(--btnW);
  height: var(--btnH);
  border: none;
  border-radius: 999px;
  background: var(--blue2);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }

/* Footer */
.footerZone {
  position: absolute;
  right: 56px;
  bottom: 32px;
  z-index: 2;
  font-size: 13px;
  text-align: right;
}

.footerZone span {
  color: var(--black);
  opacity: .7;
  margin-right: 8px;
}
.footerZone strong {
  color: var(--blue1);
  font-weight: 800;
}

/* Responsive */
@media (max-width: 1100px) {
  .page { flex-direction: column; height: auto; min-height: 100vh; }
  .panel--left { width: 100%; min-width: 0; height: 720px; }
  .panel--right { width: 100%; height: 360px; }

  .centerZone {
    left: 20px;
    right: 20px;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  
  .brandZone { margin-bottom: 20px; }
  .loginZone { width: 100%; max-width: none; }
  .actions { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .footerZone { right: 18px; bottom: 14px; }
}