/* Inicio de sesión: tarjeta centrada sobre el fondo de la empresa */

html,
body.lgn-body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* sin barra de desplazamiento */
  background: #1d262d;
}

.lgn {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 24px;
  overflow-y: auto; /* en pantallas muy bajas se puede desplazar, sin mostrar la barra */
  scrollbar-width: none;
  background-color: #1d262d;
  background-position: center;
  background-size: cover;
}

.lgn::-webkit-scrollbar {
  display: none;
}

.lgn::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(160deg, rgba(18, 28, 36, 0.9) 0%, rgba(16, 48, 56, 0.86) 100%);
}

.lgn-particles {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0.4;
}

.lgn-main {
  position: relative;
  width: 100%;
  max-width: 380px;
  text-align: center;
  animation: lgn-up 0.45s ease backwards;
}

.lgn-logo {
  max-width: 170px;
  max-height: 90px;
  margin-bottom: 26px;
  object-fit: contain;
}

.lgn-card {
  padding: 30px 28px 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lgn-foot {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.lgn-field {
  margin-bottom: 18px;
  text-align: left;
}

.lgn-input {
  display: flex;
  position: relative;
  align-items: center;
}

.lgn-input > i:first-child {
  position: absolute;
  left: 15px;
  color: #a3adb5;
  font-size: 14px;
  transition: color 0.15s ease;
  pointer-events: none;
}

.lgn-input input {
  width: 100%;
  height: 48px;
  padding: 0 44px;
  border: 1px solid #d8dfe4;
  border-radius: 9px;
  outline: none;
  background: #fbfcfd;
  color: #1d262d;
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.lgn-input input::placeholder {
  color: #b3bcc3;
}

.lgn-input input:focus {
  border-color: #00acac;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 172, 172, 0.13);
}

.lgn-input:focus-within > i:first-child {
  color: #00acac;
}

.lgn-input input.parsley-error {
  border-color: #ff5b57;
  box-shadow: 0 0 0 4px rgba(255, 91, 87, 0.1);
}

.lgn-input .showHidePw {
  position: absolute;
  right: 6px;
  padding: 10px;
  color: #98a2aa;
  cursor: pointer;
  transition: color 0.15s ease;
}

.lgn-input .showHidePw:hover {
  color: #2d353c;
}

.lgn-caps {
  display: none;
  margin-top: 6px;
  color: #c47a00;
  font-size: 11.5px;
}

.lgn-caps.is-on {
  display: block;
}

.lgn-field .parsley-errors-list {
  margin: 6px 0 0;
  padding: 0;
  color: #e0423e;
  font-size: 11.5px;
  list-style: none;
}

.lgn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 22px;
  font-size: 13px;
}

.lgn-row .checkbox {
  margin: 0;
  padding-top: 0;
}

.lgn-row .checkbox label {
  color: #4a545c;
}

.lgn-row a {
  color: #008a8a;
  font-weight: 600;
}

.lgn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 9px;
  background: #00acac;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lgn-submit:hover {
  background: #009a9a;
  box-shadow: 0 10px 22px rgba(0, 172, 172, 0.28);
  transform: translateY(-1px);
}

.lgn-submit:active {
  transform: none;
}

.lgn-submit:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 172, 172, 0.25);
}

/* ---------- Restablecer contraseña ---------- */
.lgn-reset {
  max-width: 420px;
}

.lgn-reset .modal-content {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(20, 30, 40, 0.3);
}

.lgn-reset .modal-body {
  padding: 36px 34px 28px;
  text-align: center;
}

.lgn-reset-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
}

.lgn-reset-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #e6f7f7;
  color: #00acac;
  font-size: 22px;
}

.lgn-reset h3 {
  margin: 0 0 22px;
  color: #1d262d;
  font-size: 20px;
  font-weight: 700;
}

@keyframes lgn-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lgn-main {
    animation: none;
  }
}
