/* Pantalla de login — tarjeta partida estilo referencia */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

.cav-login-page {
  min-height: 100vh;
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #eceef1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.cav-login-wrapper {
  width: 100%;
  max-width: 920px;
}

.cav-login-card {
  display: flex;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(17, 17, 17, 0.12), 0 4px 16px rgba(17, 17, 17, 0.06);
  background: #fff;
}

.cav-login-left {
  flex: 1 1 48%;
  min-width: 0;
  background: #242424;
  color: #fff;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

.cav-login-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 12px,
    rgba(255, 255, 255, 0.04) 12px,
    rgba(255, 255, 255, 0.04) 14px
  );
  pointer-events: none;
}

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

.cav-login-money-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.cav-login-money-icon i {
  font-size: 5.5rem;
  line-height: 1;
  opacity: 0.9;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.cav-login-right {
  flex: 1 1 52%;
  min-width: 0;
  background: #fff;
  padding: 2.5rem 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cav-login-logo {
  display: block;
  margin: 0 auto 0.35rem;
  max-height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.cav-login-logo-fallback {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.35rem;
}

.cav-login-kicker {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: #868e96;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.cav-login-field {
  display: flex;
  align-items: center;
  background: #f1f3f5;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 1rem 0 0.35rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cav-login-field:focus-within {
  border-color: #adb5bd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(35, 36, 38, 0.08);
}

.cav-login-field-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #868e96;
  flex-shrink: 0;
}

.cav-login-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.85rem 0.5rem 0.85rem 0;
  font-size: 0.95rem;
  color: #212529;
  outline: none;
  min-width: 0;
}

.cav-login-input::placeholder {
  color: #adb5bd;
}

.cav-login-toggle-pw {
  border: none;
  background: none;
  color: #868e96;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  flex-shrink: 0;
}

.cav-login-toggle-pw:hover {
  color: #495057;
}

.cav-login-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: #242424;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.cav-login-submit:hover {
  background: #111;
}

.cav-login-submit:active {
  transform: scale(0.99);
}

.cav-login-alert {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  background: #fde8e8;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.cav-login-version {
  text-align: center;
  font-size: 0.78rem;
  color: #868e96;
  margin: 1.25rem 0 0;
}

@media (max-width: 767px) {
  .cav-login-card {
    flex-direction: column;
    border-radius: 14px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Sin icono en móvil: el panel oscuro solo mostraba el dinero, se oculta entero */
  .cav-login-left {
    display: none !important;
  }

  .cav-login-right {
    padding: 2rem 1.35rem 1.5rem;
  }

  .cav-login-logo {
    max-height: 42px;
  }
}
