/* Fondo moderno animado */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fef6ea, #ffe5c1, #fad0c4);
  background-size: 200% 200%;
  animation: bgMove 10s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
}

@keyframes bgMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Contenedor principal */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

/* Tarjeta de login */
.login-card {
  background: #ffffffcc;
  backdrop-filter: blur(12px);
  padding: 2.5rem 2rem;
  border-radius: 25px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 380px;
  text-align: center;
  animation: slideUp 0.7s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Encabezado */
.login-header .logo {
  height: 85px;
  margin-bottom: 5px;
}

.app-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-name span:first-child { color: #e67e22; }
.app-name span:last-child { color: #800020; }

.app-subtitle {
  color: #777;
  font-size: 14px;
  margin-bottom: 1.5rem;
}

/* Campos */
.input-field {
  position: relative;
  margin-bottom: 1.5rem;
  text-align: left;
}

.input-field i {
  position: absolute;
  top: 14px;
  left: 14px;
  color: #e67e22;
  font-size: 18px;
}

.input-field input {
  width: 100%;
  padding: 12px 40px;
  border: none;
  border-radius: 12px;
  background: #f9f9f9;
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
}

.input-field label {
  position: absolute;
  top: 12px;
  left: 42px;
  color: #888;
  font-size: 15px;
  transition: 0.3s;
  pointer-events: none;
}

.input-field input:focus + label,
.input-field input:valid + label {
  top: -10px;
  left: 38px;
  font-size: 12px;
  color: #800020;
  background: #fff;
  padding: 0 5px;
  border-radius: 4px;
}

.input-field input:focus {
  background: #fff;
  box-shadow: 0 0 5px rgba(230, 126, 34, 0.3);
}

/* Botón */
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(45deg, #CF3411, #A92731);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 16px;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(169, 39, 49, 0.3);
}

.btn-login:hover {
  transform: scale(1.03);
  background: linear-gradient(45deg, #b32721, #8a1522);
}

/* Alerta */
.alert {
  font-size: 14px;
  border-radius: 10px;
  margin-top: 10px;
}

/* ✅ Footer */
.login-footer {
  text-align: center;
  color: #555;
  font-size: 13px;
  margin-top: 25px;
  opacity: 0.8;
}

.login-footer p {
  margin: 0;
  line-height: 1.4;
}

.login-footer strong {
  color: #800020;
}

/* Modo móvil */
@media (max-width: 480px) {
  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .app-name {
    font-size: 24px;
  }

  .btn-login {
    font-size: 15px;
  }

  .login-footer {
    margin-top: 20px;
    font-size: 12px;
  }
}
