/*
 * SafeWiFi · Pantallas de acceso (ingreso, recuperar, nueva clave, cambiar clave)
 * GRUPO INNYTEC — sistema de marca 2026-10
 *
 * Por qué un archivo propio: las pantallas de acceso son comunes a Home y PYME
 * y van siempre en negro con el logo negativo. Separarlas de main.css evita que
 * un cambio del panel interno rompa el ingreso (y al revés).
 */
:root {
  --sw-negro: #0B0B0C;
  --sw-panel: #111113;
  --sw-borde: #2A2A2E;
  --sw-borde-suave: #1F1F23;
  --sw-texto: #FFFFFF;
  --sw-texto-2: #B9B9C0;
  --sw-texto-3: #7A7A82;
  --sw-naranja: #FF6600;
  --sw-naranja-hover: #FF7A1F;
  --sw-enlace: #FF8A3D;
  --sw-verde: #16A34A;
  --sw-rojo: #DC2626;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.sw-acceso {
  min-height: 100vh;
  background: var(--sw-negro);
  color: var(--sw-texto);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sw-split { min-height: 100vh; display: flex; flex-wrap: wrap; }

/* ---------- Panel de marca (izquierda) ---------- */
.sw-marca {
  flex: 1 1 480px;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  border-right: 1px solid var(--sw-borde-suave);
  position: relative;
  overflow: hidden;
}
.sw-marca-logo { height: 52px; width: auto; align-self: flex-start; }
.sw-marca-cuerpo { display: flex; flex-direction: column; gap: 18px; max-width: 520px; position: relative; z-index: 1; }
.sw-eyebrow {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--sw-naranja);
}
.sw-titular {
  margin: 0; font-family: Montserrat, sans-serif; font-size: 72px; line-height: 1;
  font-weight: 800; letter-spacing: -2px;
}
.sw-bajada { margin: 0; font-size: 18px; line-height: 1.55; color: var(--sw-texto-2); }
.sw-beneficios { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.sw-beneficios li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #DADADA; }
.sw-beneficios svg { flex: 0 0 18px; }
.sw-pie-marca { margin: 0; font-size: 13px; color: var(--sw-texto-3); position: relative; z-index: 1; }

/* InnyBot: acompaña, no protagoniza. Se oculta en pantallas pequeñas. */
.sw-innybot {
  position: absolute; right: 32px; bottom: 24px;
  width: 200px; height: auto; opacity: .95; pointer-events: none; user-select: none;
}

/* ---------- Panel del formulario (derecha) ---------- */
.sw-form-lado {
  flex: 1 1 420px;
  padding: 56px 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sw-panel);
}
.sw-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.sw-form-cab { display: flex; flex-direction: column; gap: 6px; }
.sw-form-cab h2 { margin: 0; font-family: Montserrat, sans-serif; font-size: 28px; font-weight: 700; }
.sw-form-cab p { margin: 0; font-size: 15px; line-height: 1.5; color: #A6A6AE; }

.sw-campo { display: flex; flex-direction: column; gap: 8px; }
.sw-campo-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sw-campo label { font-size: 13px; font-weight: 600; color: #DADADA; }
.sw-campo input {
  height: 48px; padding: 0 14px; width: 100%;
  background: var(--sw-negro); border: 1px solid var(--sw-borde); border-radius: 8px;
  color: var(--sw-texto); font-size: 15px; font-family: inherit;
  transition: border-color .15s;
}
.sw-campo input::placeholder { color: #6E6E76; }
.sw-campo input:hover { border-color: #3A3A40; }
.sw-campo input:focus { outline: 2px solid var(--sw-naranja); outline-offset: 1px; border-color: var(--sw-naranja); }

/* Botón naranja con texto negro: el blanco sobre #FF6600 no cumple contraste AA */
.sw-boton {
  height: 50px; border: 0; border-radius: 8px; width: 100%;
  background: var(--sw-naranja); color: var(--sw-negro);
  font-family: Montserrat, sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: background .15s, transform .05s;
}
.sw-boton:hover { background: var(--sw-naranja-hover); }
.sw-boton:active { transform: translateY(1px); }
.sw-boton:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }

.sw-enlace { color: var(--sw-enlace); font-size: 13px; text-decoration: none; }
.sw-enlace:hover { color: #FFB27F; text-decoration: underline; }
.sw-enlace-centro { text-align: center; }

.sw-aviso {
  padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.45;
  display: flex; gap: 10px; align-items: flex-start;
}
.sw-aviso-error { background: rgba(220, 38, 38, .12); border: 1px solid rgba(220, 38, 38, .45); color: #FCA5A5; }
.sw-aviso-ok { background: rgba(22, 163, 74, .12); border: 1px solid rgba(22, 163, 74, .45); color: #86EFAC; }

.sw-seguro {
  display: flex; align-items: center; gap: 10px; padding-top: 18px;
  border-top: 1px solid var(--sw-borde-suave); font-size: 13px; color: var(--sw-texto-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .sw-innybot { width: 150px; right: 20px; bottom: 16px; }
  .sw-titular { font-size: 60px; }
}
@media (max-width: 900px) {
  .sw-marca { padding: 32px 24px; gap: 24px; border-right: 0; border-bottom: 1px solid var(--sw-borde-suave); }
  .sw-titular { font-size: 44px; letter-spacing: -1px; }
  .sw-bajada { font-size: 16px; }
  .sw-beneficios, .sw-innybot, .sw-pie-marca { display: none; }
  .sw-form-lado { padding: 32px 16px 48px; align-items: flex-start; }
}
