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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Login Container */
.login-wrapper {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  animation: fadeIn 1s ease-in-out;
}

/* Login Box */
.login-box {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  animation: slideUp 0.6s ease;
}

/* Logo */
.logo {
  width: 80px;
  margin-bottom: 20px;
  border-radius: 50%;
}

/* Título */
.login-box h2 {
  margin-bottom: 25px;
  color: #333;
  font-weight: 600;
}

/* Input Group */
.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s ease;
  background-color: #fff;
  color: #333;
}

.input-group input:focus {
  outline: none;
  border-color: #697e50;
}

/* Iconos dentro del input */
.icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #697e50;
  font-size: 18px;
}

/* Botón */
.login-btn {
  background-color: #697e50;
  color: white;
  padding: 12px;
  width: 100%;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background-color: #5b6e45;
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.error {
  background-color: #fce4e4;
  color: #c62828;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid #f44336;
  text-align: center;
  font-weight: 500;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 500px) {
  .login-box {
    padding: 30px 20px;
  }

  .input-group input {
    padding: 12px 38px;
  }
}
