/* login.css */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #1e3c72, #2a5298, #38ef7d);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}

/* Contenedor estilo glass */
.login-container {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  width: 350px;
  color: #fff;
  text-align: center;
  animation: fadeIn 0.7s ease-in-out;
}

/* Icono/avatar arriba */
.login-container .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: rgba(255,255,255,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5em;
  color: #ffffff;
}

h2 {
  margin-bottom: 25px;
  font-weight: 600;
  font-size: 1.6em;
  color: #eaf6f6;
}

label {
  display: block;
  text-align: left;
  margin: 12px 0 6px;
  font-size: 0.9em;
  color: #dff6ff;
}

input {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.95em;
  outline: none;
}

input::placeholder {
  color: rgba(255,255,255,0.7);
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #11998e, #38ef7d);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

button:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

.error {
  color: #ff6b6b;
  font-size: 0.9em;
  margin-top: 10px;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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