/* GRID */
.contenedor-principal {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 100vh;
}

@supports (height: 100dvh) {
  .contenedor-principal {
    min-height: 100dvh;
  }
}

/* LEFT */
.imagen-izquierda {
  background-image: url("../../imagenes/background_login.webp");
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
}

/* RIGHT */
.imagen-derecha {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px);
  background: var(--bg);
}

/* FORM */
.contenedor-login {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.imagen-login {
  width: 220px;
  height: 88px;
  background-image: url("../../imagenes/logo_isologo.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0 auto 18px auto;
}

label {
  font-size: 14px;
  font-weight: 500;
}

input,
select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b0b0b;
  color: #fff;
  font-size: 15px;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 0, 64, 0.12);
  outline: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

input[type="date"] {
  color-scheme: dark;
}

.btn-submit {
  margin-top: 6px;
  padding: 13px 16px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 0, 64, 0.28);
}

.row.center {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.enlace {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.legal {
  font-size: 12px;
  opacity: 0.7;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contenedor-principal {
    grid-template-columns: 1fr;
  }

  .imagen-izquierda {
    display: none;
  }
}
