/* ================= FONDO CORPORATIVO ================= */

/*.l4d-login-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0,0,0,.03), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0,0,0,.03), transparent 40%),
    #f4f6f9;
  z-index: -1;
}*/

/* ================= CARD ================= */

.l4d-login-card {
  max-width: 1100px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,.08),
    0 4px 12px rgba(0,0,0,.05);
  animation: l4dFadeUp .4s ease;
}

/* ================= BRANDING ================= */

.l4d-login-brand {
  position: relative;
  overflow:hidden;
  background: linear-gradient(160deg, var(--l4d-primary), var(--l4d-primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
}

.l4d-login-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,0.15),
    transparent 60%
  );
  opacity: 0.6;
}

.l4d-login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0; /* fondo */
}

.l4d-login-brand > * {
  position: relative;
  z-index: 1; /* contenido */
}

.l4d-login-logo {
  max-height: 120px;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.15));
  transition: transform .2s ease;
}

.l4d-login-logo:hover {
  transform: scale(1.03);
}

.l4d-login-description {
  opacity: .8;
  line-height: 1.6;
}

.l4d-login-features div {
  opacity: .7;
  margin-bottom: .5rem;
  font-size: .9rem;
}

/* ================= INPUTS ================= */

.l4d-input {
  border-radius: 14px;
  border: 1px solid var(--l4d-primary);
  transition: all .2s ease;
}

.l4d-input:focus {
  border-color: var(--l4d-primary);
  box-shadow: 0 0 0 3px var(--l4d-primary-softer);
}

/* ================= PASSWORD ICON ================= */

.l4d-toggle-pass {
  position: absolute;
  right: 18px;
  top: 70%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--l4d-primary-dark);
  font-size: .95rem;
}


.l4d-login .input-group-text {
  cursor: pointer;
  background: transparent;
  border-left: 0;
}

.l4d-login .form-control.is-valid {
  border-color: #198754;
}

.l4d-login .form-control.is-invalid {
  border-color: #dc3545;
}

.l4d-login .form-control.is-valid,
.l4d-login .form-control.is-invalid {
  background-image: none !important;
  padding-right: 0.75rem;
}

/* ================= BOTÓN ================= */

.l4d-login-btn {
  border-radius: 14px;
  background: var(--l4d-primary-medium);
  color: #fff;
  font-weight: 500;
  transition: all .2s ease;
}

.l4d-login-btn:hover {
  background: var(--l4d-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--l4d-primary-soft);
}

/* ================= ANIMACIÓN ================= */

@keyframes l4dFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* EFECTO 1 */

.l4d-login-bg {
  position: fixed;
  inset: 0;
  z-index: -1;

  background: linear-gradient(
    120deg,
    #f4f6f9,
    #eef2f7,
    #f8f9fb
  );

  background-size: 300% 300%;
  animation: l4dBgShift 18s ease infinite;
}

@keyframes l4dBgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* EFECTO 2 */
.l4d-login-bg::before,
.l4d-login-bg::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: .15;
  animation: l4dFloat 25s ease-in-out infinite alternate;
}

.l4d-login-bg::before {
  background: var(--l4d-primary-dark);
  top: -150px;
  left: -150px;
}

.l4d-login-bg::after {
  background: var(--l4d-primary-medium);
  bottom: -200px;
  right: -150px;
}

@keyframes l4dFloat {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(40px);
  }
}

.l4d-reset-success #l4d-login-alert {
  animation: l4dFadeSlide 0.6s ease;
}

@keyframes l4dFadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===============================
   LOGIN TOAST PREMIUM
================================= */

.l4d-login-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.35s ease;
}

.l4d-login-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.l4d-login-toast-inner {
  display: flex;
  align-items: center;
  gap: 14px;

  background: linear-gradient(
    135deg,
    var(--l4d-primary),
    var(--l4d-primary-dark)
  );

  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.18),
    0 4px 12px rgba(0,0,0,0.08);
}

.l4d-login-toast-inner i {
  font-size: 1.4rem;
  opacity: 0.95;
}

.l4d-toast-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.l4d-toast-text {
  font-size: 0.8rem;
  opacity: 0.85;
}
