/* ================= LOGIN ================= */
.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;

  background-image: url("../img/foto2.jpg");
  background-size: 110%;
  background-position: center;
  background-repeat: no-repeat;

  animation: moverFondo 20s ease-in-out infinite alternate;
}

@keyframes moverFondo {
  0% {
    background-position: center top;
  }
  100% {
    background-position: center bottom;
  }
}
.center-screen {
  min-height: 100vh;
  display: flex;
  background-image: url("../img/foto2.jpg");
  background-position: center;
  background-size: cover;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.segundo-back {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.623);
}
.loginBox {
  width: 420px;
  max-width: 95vw;
  border: 2px solid #c9a347;
  background: #fff;
  border-radius: 20px;
  padding: 0px;
  display: flex;
  box-shadow: inset 0 0 0 1000px rgba(201, 163, 71, 0.5);
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: glow 2.5s ease-in-out infinite alternate;
  z-index: 10;
}

.mutedl {
  text-align: left;
  color: #062a56;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
@keyframes glow {
  from {
    box-shadow: 0 0 8px rgba(201, 163, 71, 0.5);
  }
  to {
    box-shadow: 0 0 25px rgba(201, 163, 71, 0.9);
  }
}

/* Header login */
.loginBox .login-header {
  display: flex;
  align-items: center;
}

.loginBox .login-title {
  font-weight: 800;
  font-size: 16px;
}
.contform {
  padding: 20px 20px 0px 20px;
  background: transparent;
}
.loginBox .login-subtitle {
  font-size: 13px;
  color: #062a56;
}

.muteds {
  text-align: center;
  color: #ecf0f3;
  background: #062a56;
  border-radius: 0px 0px 18px 18px;
  margin-top: 0 !important;
  padding: 20px;
}

/* ================= LABEL & INPUT ================= */

/* Contenedor de cada campo */
.loginBox .field {
  position: relative;
  margin-bottom: 20px;
}

/* Inputs estilo moderno */
.loginBox input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #062a56;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  background-color: #f8f9fc;
  color: #0d1b3a;
}

/* Placeholder estilizado */
.loginBox input::placeholder {
  color: #aaa;
  font-size: 13px;
}
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;

  cursor: pointer;
  position: relative;
  overflow: hidden;

  backdrop-filter: blur(8px);

  transition: all 0.25s ease;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* icono */
.logout-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

/* hover */
.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #f87171, #ef4444);
}

/* animación icono */
.logout-btn:hover .icon {
  transform: translateX(4px);
}

/* click */
.logout-btn:active {
  transform: scale(0.96);
}

/* efecto brillo */
.logout-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transition: all 0.5s;
}

.logout-btn:hover::before {
  left: 100%;
}
/* Labels animados estilo material design */
.loginBox label {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 13px;
  color: #1b2e5a;
  font-weight: 600;
  pointer-events: none;
  transition: 0.3s ease all;
}

/* Label sube cuando input está enfocado o tiene texto */
.loginBox input:focus + label,
.loginBox input:not(:placeholder-shown) + label {
  top: -10px;
  left: 12px;
  font-size: 12px;
  color: #0a3a8c;
  background: #fff;
  padding: 0 4px;
}

/* Efecto al enfocar input */
.loginBox input:focus {
  border-color: #0a3a8c;
  box-shadow: 0 0 8px rgba(10, 58, 140, 0.2);
}

/* Efecto hover */
.loginBox input:hover {
  border-color: #0a3a8c;
}
.title-sesion {
  padding: 20px 0 16px;
  text-align: center;
  color: #062a56;
}
.logo-login {
  position: relative;
  left: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.25);
}
.cont_login {
  width: 100%;
  border-radius: 18px 18px 0px 0px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0px;
  top: 0px;
  gap: 30px;
  background: #062a56;
}
.main-title {
  font-weight: 800;
  font-size: 25px;
  letter-spacing: 0.4px;
  color: #ecf0f3;
  margin: 0 0 4px 0;
  text-shadow: 0 1px 2px rgba(6, 42, 86, 0.18);
}

.subtitle {
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  margin: 0;
  letter-spacing: 0.2px;
  opacity: 0.95;
}
/* Botón */
.loginBox .btn {
  width: 100%;
  padding: 10px;
  background: #062a56;
  color: #facd32;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.loginBox .btn:hover {
  background: #0c4594;
  filter: brightness(1.05);
}

.loginBox {
  filter: brightness(1.05);
}

.errormesage {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
}

.errormesage.show {
  opacity: 1;
  transform: translateY(0);
}

.errormesageor {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
  padding: 10px 14px;
  border-radius: 8px;
}

.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  padding: 10px 14px;
  border-radius: 8px;
}
