/* styleslogin.css para Pokemon TCG */

/* Variables globales */
:root {
  --primary-color: #ff3e3e; /* Rojo Pokeball */
  --secondary-color: #3db2ff; /* Azul Pokemon */
  --accent-color: #ffde00; /* Amarillo Pikachu */
  --dark-color: #263238;
  --light-color: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Roboto', sans-serif;
}

body {
  background-color: #ffffff;
  
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
}

/*body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}*/

.login-container {
  background-color: var(--light-color);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 380px;
  z-index: 2;
  position: relative;
}

.login-header {
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 20px;
  text-align: center;
  position: relative;
}

.login-header img {
  width: 180px;
  margin-bottom: 10px;
}

.login-header h1 {
  font-size: 24px;
  margin-bottom: 5px;
}

.login-header p {
  font-size: 14px;
  opacity: 0.8;
}

.pokeball-decoration {
  position: absolute;
  top: -35px;
  right: -35px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 50%, var(--light-color) 50%, var(--light-color) 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--dark-color);
  z-index: 1;
}

.pokeball-decoration::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--dark-color);
  border-radius: 50%;
  border: 4px solid var(--light-color);
  z-index: 2;
}

.login-form {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--dark-color);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.form-group input:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(61, 178, 255, 0.2);
  background-color: var(--light-color);
}

.form-group input::placeholder {
  color: #aaa;
}

.error-message {
  color: var(--primary-color);
  font-size: 14px;
  margin-top: 10px;
  font-weight: 500;
  text-align: center;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  background-color: #e62c2c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.login-btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

.register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--dark-color);
}

.register-link a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.register-link a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.pokemon-decoration {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.1;
  z-index: -1;
}

.pikachu {
  bottom: 20px;
  right: 20px;
  background-image: url('../assets/images/pikachu-silhouette.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.pokeball {
  top: 20px;
  left: 20px;
  background-image: url('../assets/images/pokeball-silhouette.png');
  background-size: contain;
  background-repeat: no-repeat;
}

/* Efecto de animación para los inputs */
@keyframes focusAnimation {
  0% { transform: scale(0.98); }
  70% { transform: scale(1.001); }
  100% { transform: scale(1); }
}

.form-group input:focus {
  animation: focusAnimation 0.3s ease forwards;
}

/* Responsive */
@media screen and (max-width: 480px) {
  .login-container {
    width: 95%;
    margin: 0 10px;
  }
  
  .login-header h1 {
    font-size: 20px;
  }
}