/* Fondo general */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  height: 100vh;
}

/* Wrapper */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* Tarjeta */
.login-card {
  background: #ffffff;
  width: 360px;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.6s ease;
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.login-header i {
  font-size: 50px;
  color: #2c5364;
}

.login-header h1 {
  font-size: 18px;
  margin: 12px 0 4px;
  color: #1f2d3d;
}

.login-header p {
  font-size: 13px;
  color: #6b7280;
}

/* Inputs */
.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #94a3b8;
}

.input-group input {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 12px 12px 38px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  outline: none;
  font-size: 14px;
}

.input-group input:focus {
  border-color: #2c5364;
  box-shadow: 0 0 0 2px rgba(44, 83, 100, 0.2);
}

/* Botón */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2c5364;
  color: #ffffff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button i {
  margin-right: 6px;
}

button:hover {
  background: #1e3a48;
}

/* Error */
.mensaje-error {
  margin-top: 10px;
  font-size: 13px;
  color: #dc2626;
  text-align: center;
}

/* Footer */
.login-footer {
  margin-top: 18px;
  text-align: center;
}

.login-footer a {
  font-size: 13px;
  color: #2c5364;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
