/* ============================================================
   m780_auth_estilos.css
   Acceso · DropMetrix
   V09 - zoom más suave + panel derecho más ancho
   ============================================================ */

:root {
  --auth-navy: #052e59;
  --auth-blue: #0877e8;
  --auth-text: #173858;
  --auth-muted: #75899c;
  --auth-border: #dce6ee;
  --auth-bg: #eef4f8;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 8% 10%, rgba(149, 207, 242, .22), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(150, 222, 208, .16), transparent 28%),
    var(--auth-bg);
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 12px;
}

/* ============================================================
   CONTENEDOR PRINCIPAL
   Más alto, pero con un ancho que respeta mejor la proporción
   3:4 de la imagen 1086x1448.
   ============================================================ */

.auth-shell {
  width: calc(100vw - 24px);
  height: calc(100vh - 24px);
  min-height: 0;
  display: grid;
  grid-template-columns: 57% 43%;
  gap: 0;
  column-gap: 0;
  overflow: hidden;
  border: 1px solid rgba(205, 219, 230, .96);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(21, 55, 85, .14);
}

/* ============================================================
   PANEL IZQUIERDO
   La imagen YA contiene logo, textos, iconos y composición.
   Se muestra COMPLETA: no se recorta ni arriba ni abajo.
   ============================================================ */

.auth-visual {
  min-width: 0;
  min-height: 0;
  display: grid;
  margin: 0;
  padding: 0;
  place-items: center;
  overflow: hidden;
  background: #edf6fc;
}

.auth-visual-image {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.08);
  transform-origin: center center;
}

/* ============================================================
   PANEL DERECHO
   ============================================================ */

.auth-panel {
  min-width: 0;
  display: grid;
  justify-items: stretch;
  align-items: start;
  padding: clamp(72px, 12vh, 118px) 22px 42px 24px;
  margin: 0;
  border-left: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(221, 240, 255, .34), transparent 32%),
    #ffffff;
}

.auth-card {
  width: min(100%, 560px);
  margin-left: 0;
  margin-right: 0;
}

.auth-eyebrow {
  margin-bottom: 8px;
  color: #6b8aa3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-card h2 {
  margin: 0;
  color: var(--auth-navy);
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.auth-lead {
  margin: 10px 0 25px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-alert {
  margin: -7px 0 17px;
  padding: 10px 12px;
  border: 1px solid #efc4c4;
  border-radius: 10px;
  background: #fff1f1;
  color: #a13a3a;
  font-size: 11px;
  font-weight: 650;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field > span {
  color: #59758d;
  font-size: 10px;
  font-weight: 750;
}

.auth-input-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(28, 62, 91, .035);
  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.auth-input-wrap:focus-within {
  border-color: #69a9da;
  box-shadow: 0 0 0 3px rgba(74, 149, 207, .10);
}

.auth-input-wrap svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #537b9b;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #173858;
  font: inherit;
  font-size: 12px;
}

.auth-input-wrap input::placeholder {
  color: #9aa9b6;
}

.auth-eye {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #67859c;
  cursor: pointer;
  font-size: 12px;
}

.auth-eye:hover {
  background: #eef5fa;
}

.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: -1px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #58748a;
  font-size: 10.5px;
  cursor: pointer;
}

.auth-remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--auth-blue);
}

.auth-session-note {
  color: #7d91a2;
  font-size: 9.5px;
}

.auth-submit {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b84eb, #0871d8);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(6, 112, 215, .22);
  transition:
    transform .14s ease,
    box-shadow .14s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(6, 112, 215, .28);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 24px 0 18px;
}

.auth-divider span {
  height: 1px;
  background: #e2e9ef;
}

.auth-divider small {
  color: #9aaab7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}

.auth-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #72899b;
  font-size: 9.5px;
}

.auth-security svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #527a9b;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1180px) {
  .auth-shell {
    width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    grid-template-columns: 56% 44%;
  }

  .auth-panel {
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media (max-width: 900px) {
  .auth-body {
    align-items: start;
    padding: 10px;
  }

  .auth-shell {
    width: min(700px, 97vw);
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-visual {
    height: min(76vh, 760px);
    min-height: 520px;
  }

  .auth-visual-image {
    object-fit: contain;
    object-position: center center;
    transform: scale(1.00);
    transform-origin: center center;
  }

  .auth-panel {
    align-items: center;
    justify-items: stretch;
    padding: 36px 24px 42px;
  }
}

@media (max-width: 520px) {
  .auth-body {
    padding: 6px;
  }

  .auth-shell {
    width: 100%;
    border-radius: 16px;
  }

  .auth-visual {
    height: 62vh;
    min-height: 420px;
  }

  .auth-panel {
    padding: 30px 18px 34px;
  }

  .auth-card h2 {
    font-size: 30px;
  }
}
