body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
}

/* ── Contenedor principal ── */
.container {
  display: flex;
  height: 100vh;
}

/* ── Panel izquierdo ── */
.left-panel {
  flex: 0.5;
  background: url('/Imagenes/imagen-login.webp') no-repeat center center;
  background-size: cover;
  position: relative;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Capa oscura sobre la imagen para que el texto se lea bien */
.left-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 49, 0.38);
}

.left-panel > * {
  position: relative;
  z-index: 1;
}

.logo {
  position: absolute;
  top: 48px;
  left: 48px;
  width: 160px;
  filter: brightness(0) invert(1) !important;
  z-index: 1;
}

.frase {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
}

.frase h1 {
  color: #ffffff !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* ── Panel derecho ── */
.right-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 40px 24px;
  box-sizing: border-box;
}

.login-box {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: center;
}

/* Títulos del panel derecho */
.login-box > h1,
.titulos h1 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #020031 !important;
  text-align: center;
  line-height: 1.25 !important;
  margin: 0 !important;
  letter-spacing: -0.3px;
}

.subtext {
  font-size: 0.92rem !important;
  font-weight: 400 !important;
  color: #64748b !important;
  text-align: center;
  line-height: 1.6 !important;
  margin: 0 !important;
}

.titulos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.form-group,
.form-botones,
.form-recordatorio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

form .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-botones {
  width: 100%;
  gap: 16px !important;
}

/* Botón principal */
.btn {
  width: 100% !important;
}

/* Links */
a {
  font-size: 0.875rem !important;
}

.register {
  font-size: 0.875rem !important;
  text-align: center;
  color: #64748b !important;
  margin: 0 !important;
}

.register a {
  font-size: 0.875rem !important;
  font-weight: 700;
}

/* ════════════════════════════════════════
   RESPONSIVE — Tablet (≤900px)
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .left-panel {
    flex: 0 0 42%;
  }
  .logo {
    width: 130px;
  }
}

/* ════════════════════════════════════════
   RESPONSIVE — Móvil (≤640px)
   ════════════════════════════════════════ */
@media (max-width: 640px) {
  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .left-panel {
    display: none;
  }

  .right-panel {
    width: 100%;
    min-height: 100vh;
    padding: 48px 24px;
  }

  .login-box {
    gap: 24px;
  }

  .subtext {
    font-size: 0.85rem !important;
  }
}
