/* Páginas de acceso (inicio de sesión) */

.acceso-pagina {
  display: flex;
  justify-content: center;
  padding: 56px 16px 72px;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 159, 237, 0.1) 0, transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(127, 190, 57, 0.14) 0, transparent 40%),
    #f6fafc;
}

.acceso-tarjeta {
  width: min(100%, 600px);
  padding: 40px 40px 28px;
  border: 1px solid #e1ebf1;
  background: #fff;
  box-shadow: 0 14px 40px rgba(30, 80, 110, 0.12);
  margin-top: 40px;
}

.acceso-encabezado {
  margin-bottom: 26px;
  text-align: center;
}

.acceso-encabezado img {
  width: 190px;
  max-width: 70%;
  height: auto;
  margin-bottom: 14px;
}

.acceso-encabezado h1 {
  margin: 0;
  color: #1f3a52;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.acceso-encabezado p {
  margin: 8px 0 0;
  color: #5a6b77;
  font-size: 17px;
  line-height: 1.5;
}

.acceso-formulario {
  display: block;
  width: 100%;
  float: none;
}

.acceso-formulario::after {
  display: table;
  clear: both;
  content: "";
}

.acceso-campo {
  margin-bottom: 20px;
}

.acceso-campo label {
  display: block;
  position: static;
  margin: 0 0 7px;
  color: #2f4152;
  font-size: 16px;
  font-weight: 700;
  transform: none;
}

.acceso-control {
  position: relative;
}

.acceso-icono {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #7d8f9b;
  font-size: 22px;
  pointer-events: none;
  transform: translateY(-50%);
}

.acceso-control input {
  box-sizing: border-box;
  width: 100%;
  height: 54px;
  margin: 0;
  padding: 0 52px 0 46px;
  border: 1px solid #c4d3dc;
  border-radius: 12px !important;
  background: #fbfdfe;
  box-shadow: none;
  color: #1f2f3a;
  font-size: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acceso-control input::placeholder {
  color: #96a5af;
}

.acceso-control input:focus {
  border-color: var(--main-color, #009fed);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 159, 237, 0.18);
}

.acceso-ver-contrasena {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5a6b77;
  cursor: pointer;
  transform: translateY(-50%);
}

.acceso-ver-contrasena:hover {
  background: #eef4f8;
}

.acceso-ver-contrasena:focus-visible {
  outline: 3px solid rgba(0, 159, 237, 0.35);
}

.acceso-olvido {
  display: inline-block;
  margin-top: 10px;
  color: #0a6fa6;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acceso-olvido:hover,
.acceso-olvido:focus-visible {
  color: #08537d;
}

/* Botones: se mantienen los colores del sitio, a todo el ancho de la tarjeta */
.acceso-boton {
  display: flex;
  float: none;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0 20px;
  border-radius: 12px !important;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.acceso-boton .material-icons {
  float: none;
  margin: 0;
  font-size: 22px;
  line-height: 1;
}

.boton-principal.acceso-boton {
  box-shadow: 0 6px 16px rgba(0, 159, 237, 0.32);
}

.acceso-boton-contorno {
  border: 2px solid var(--main-color, #009fed);
  background: #fff;
  box-shadow: none;
  color: #0a6fa6;
}

.acceso-boton-contorno:hover,
.acceso-boton-contorno:focus-visible {
  background: #eef8fe;
  color: #08537d;
}

.acceso-boton:focus-visible {
  outline: 3px solid #e8a94b;
  outline-offset: 3px;
}

.acceso-separador {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: #7d8f9b;
  font-size: 15px;
  text-transform: uppercase;
}

.acceso-separador span {
  width: auto;
}

.acceso-separador::before,
.acceso-separador::after {
  flex: 1;
  height: 1px;
  background: #dbe5ec;
  content: "";
}

.acceso-pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e6edf2;
  color: #4d5c66;
  font-size: 17px;
}

.acceso-pie a {
  color: #4a8a14;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acceso-pie a:hover,
.acceso-pie a:focus-visible {
  color: #346409;
}

.acceso-tarjeta .alert {
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: 16px;
}

@media (max-width: 520px) {
  .acceso-pagina {
    padding: 28px 12px 48px;
  }

  .acceso-tarjeta {
    padding: 28px 20px 22px;
    border-radius: 18px;
  }

  .acceso-encabezado h1 {
    font-size: 26px;
  }
}
