/**
 * Estilos del portal de ingreso de asociados (registro.php)
 */

.login-portal {
  min-height: 100vh;
  background-color: #eef1f6;
  font-family: "Inter", sans-serif;
}

.login-portal__hero {
  background-image: url('../media/fondo_13.jpeg?8');
  background-size: cover;
  min-height: 100vh;
  position: relative;
}

.login-portal__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 35, 80, 0.55) 0%,
    rgba(15, 35, 80, 0.75) 70%,
    rgba(12, 28, 64, 0.92) 100%
  );
}

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

.login-portal__hero-text {
  max-width: 320px;
}

.login-portal__card--main {
  max-width: 540px;
}

.login-portal__card-header {
  margin-bottom: 0.5rem;
}

.login-portal__card-logo-wrap {
  line-height: 0;
  margin: 0 auto 0.35rem;
  max-width: 400px;
  width: 100%;
}

.login-portal__card-header .login-portal__card-logo,
.login-portal__card-logo-wrap .login-portal__card-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  vertical-align: middle;
}

.login-portal__card-logos {
  margin-bottom: 0.35rem;
  line-height: 0;
}

.login-portal__card-logos img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.login-portal__hero-icon {
  width: 48px;
  height: 48px;
  background: rgba(76, 120, 221, 0.9);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

.login-portal__hero-security {
  background: rgba(12, 28, 64, 0.85);
  padding: 1rem 1.25rem;
}

.login-portal__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 35, 80, 0.08);
  padding: 2rem 2.25rem;
}

.login-portal__card-icon {
  width: 56px;
  height: 56px;
  background: #e8eefb;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1e3a8a;
  font-size: 1.5rem;
}

.login-portal__title {
  color: #1e3a8a;
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.login-portal__card-header .text-muted {
  margin-top: 0;
}

.login-portal__input-group {
  position: relative;
}

.login-portal__input-group .form-control {
  padding-left: 2.75rem;
  border-radius: 8px;
  border-color: #d1d9e6;
  height: calc(3rem + 2px);
}

.login-portal__input-group .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  z-index: 4;
}

.login-portal__toggle-pass {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  font-size: 0.8rem;
  color: #4c78dd;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.login-portal__btn-ingresar {
  background: #2563eb;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  width: 100%;
}

.login-portal__btn-ingresar:hover {
  background: #1d4ed8;
}

.login-portal__form .login-portal__btn-ingresar.flex-fill,
.login-portal__form .login-portal__btn-ingresar.flex-sm-fill {
  width: auto;
}

.login-portal__help-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 35, 80, 0.06);
  padding: 1.5rem;
  max-width: 320px;
}

.login-portal__help-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef1f6;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.login-portal__help-item:last-of-type {
  border-bottom: none;
}

.login-portal__help-item:hover {
  background: #f8fafc;
  color: inherit;
}

.login-portal__help-item .help-icon {
  width: 40px;
  height: 40px;
  background: #e8eefb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3a8a;
  flex-shrink: 0;
}

.login-portal__help-item .help-chevron {
  color: #94a3b8;
  margin-left: auto;
  align-self: center;
}

.login-portal__hours {
  background: #e8eefb;
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.875rem;
}

.login-portal__footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.login-portal__intro {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.login-portal__rules {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #475569;
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

.login-portal__rules li {
  margin-bottom: 0.35rem;
}

.login-portal__card--wide {
  max-width: 520px;
}

@media (max-width: 991.98px) {
  .login-portal__hero {
    min-height: 280px;
  }

  .login-portal__card,
  .login-portal__help-card {
    margin-bottom: 1rem;
  }
}
