/* ============================================================
   Login de EQUIPOS (/) — diseño Volvo VISTA 2026
   Depende de base.css para la fuente Volvo Centum y el "ojo".
   ============================================================ */

body.acceso {
  background: #ffffff;
  color: #141414;
  display: flex;
  flex-direction: column;
  min-height: 100vh;   /* fallback para navegadores sin dvh */
  min-height: 100dvh;  /* altura REAL visible (descuenta la barra del navegador en tablet/móvil) */
}
body.acceso::before { display: none; } /* sin el velo oscuro de base.css */

/* ---------- Cabecera ---------- */
.acceso-eyebrow {
  display: inline-block;
  padding: 0px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #141414;
}
.acceso-rule { height: 1px; background: #141414; margin-top: 8px; }
.acceso-volvo { width: clamp(100px, 13vw, 130px); margin-top: 16px; margin-left: 45px; display: block; }

/* ---------- Banda lavanda (hero) ---------- */
.acceso-hero {
  flex: 1 1 auto;
  margin-top: 15px;
  padding: 15px 22px;
  background: #e6e9fb;
  display: flex;
  flex-direction: column;
  align-items: center;      /* centra en horizontal */
  justify-content: center;  /* centra en vertical → reparte el hueco arriba/abajo */
}
.acceso-vista {
  width: min(230px, 78vw);
  height: auto;
  margin-bottom: clamp(15px, 3vw, 15px);
}

/* ---------- Formulario (tarjeta + botón) ---------- */
.acceso-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 28px);
}

.acceso-card {
  width: min(520px, 92vw);
  background: #f5f3f0; /* Pure Grey */
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(20, 20, 40, 0.10);
  padding: clamp(24px, 4vw, 32px) clamp(22px, 4vw, 40px) clamp(26px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.acceso-intro {
  margin-bottom: 0px !important;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
  color: #2a2a2a;
}
.acceso-intro strong { font-weight: 700; }
.acceso-intro .u { text-decoration: underline; }

.acceso-card label {
  font-size: 15px;
  font-weight: 700;
  color: #141414;
  margin: 14px 0 8px;
}
.acceso-card input[type="password"],
.acceso-card select {
  width: 100%;
  padding: 11px 13px;
  font-size: 16px;
  font-family: inherit;
  color: #141414;
  background: #ffffff;
  border: 1px solid #bdbbb7;
  border-radius: 3px;
}
.acceso-card input:focus,
.acceso-card select:focus {
  outline: 2px solid #2b5aa6;
  outline-offset: 1px;
  border-color: #2b5aa6;
}
/* Desplegable de equipos: flecha propia para no depender del estilo del sistema */
.acceso-card select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e5e5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

/* Campo contraseña (el "ojo" lo estiliza base.css) */
.acceso-card .campo-password { position: relative; display: flex; }
.acceso-card .campo-password input { padding-right: 46px; }

.acceso-error {
  margin: 16px 0 0;
  color: #c0392b;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Botón ACCEDER ---------- */
.btn-acceder {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 5px 20px 5px 30px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: inherit;
  color: #ffffff;
  background: #fa6400;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(250, 100, 0, 0.28);
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn-acceder:hover { background: #e85d00; }
.btn-acceder:active { transform: translateY(1px); }
.btn-acceder:focus-visible { outline: 3px solid #141414; outline-offset: 3px; }
.btn-arrow { display: inline-flex; }
.btn-arrow svg { width: 30px; height: 30px; }

/* ---------- Pie ---------- */
.acceso-foot { padding-top: 15px; }
.acceso-foot-volvo { margin: 14px 20px; width: 92px; display: block; }

/* Pantallas BAJAS (tablet en horizontal, portátiles pequeños): comprime el alto
   para que quepa sin scroll vertical. Se activa por altura, no por ancho. */
@media (max-height: 820px) {
  .acceso-hero  { margin-top: 6px; padding: 8px 22px; }
  .acceso-vista { width: min(160px, 55vw); margin-bottom: 8px; }
  .acceso-form  { gap: 14px; }
  /* .acceso-card  { padding: 16px 28px 18px; } */
  .acceso-card label { margin: 8px 0 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-acceder { transition: none; }
}

