:root {
  --primary-color: #00b894;
  --primary-dark: #00a383;
  --primary-light: #55efc4;
  --secondary-color: #0984e3;
  --secondary-dark: #0876c9;
  --accent-color: #fdcb6e;
  --accent-dark: #f0b445;
  --light-color: #f5f5f5;
  --dark-color: #2d3436;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  background-image: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  position: relative;
  overflow: hidden;
}

.login-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 450px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 40px;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.8s ease-out;
z-index:99999;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  margin-bottom: 20px;
  display: inline-block;
  position: relative;
}

.sports-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(0, 184, 148, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  animation: pulse 2s infinite;
}

.sports-icon {
  position: absolute;
  font-size: 2.5rem;
  color: var(--primary-color);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.sports-icon.active {
  opacity: 1;
  transform: scale(1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 184, 148, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 184, 148, 0);
  }
}

/* Añadir colores específicos para cada deporte */
[data-sport="paddle"] {
  color: var(--primary-color);
}

[data-sport="soccer"] {
  color: #2ecc71;
}

[data-sport="basketball"] {
  color: #e74c3c;
}

[data-sport="tennis"] {
  color: #f39c12;
}

[data-sport="golf"] {
  color: #3498db;
}

[data-sport="volleyball"] {
  color: #9b59b6;
}

.login-header h1 {
  color: var(--dark-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.login-header p {
  color: #636e72;
  font-size: 0.95rem;
}

.login-form {
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-color);
  font-size: 0.95rem;
}

.form-group label i {
  color: var(--primary-color);
  margin-right: 8px;
  font-size: 1rem;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #f9f9f9;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.1);
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 42px;
  background: none;
  border: none;
  color: #636e72;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.toggle-password:hover {
  color: var(--primary-color);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input[type="checkbox"] {
  margin-right: 8px;
  accent-color: var(--primary-color);
  width: 16px;
  height: 16px;
}

.remember-me label {
  color: #636e72;
  cursor: pointer;
}

.forgot-password {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

.forgot-password:hover {
  color: var(--secondary-dark);
  text-decoration: underline;
}

.login-button {
  width: 100%;
  padding: 14px 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-button span {
  z-index: 1;
  margin-right: 8px;
}

.login-button i {
  z-index: 1;
  transition: transform 0.3s ease;
}

.login-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.login-button:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

.login-button:hover i {
  transform: translateX(5px);
}

.login-button:hover::before {
  transform: translateX(100%);
}

.login-footer {
  text-align: center;
}

.back-link {
  color: #636e72;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.back-link i {
  margin-right: 5px;
  font-size: 0.8rem;
}

.back-link:hover {
  color: var(--primary-color);
}

.error-message {
  background-color: #fff5f5;
  color: #e53e3e;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  border-left: 4px solid #e53e3e;
  animation: shake 0.5s ease-in-out;
}

.error-message i {
  margin-right: 10px;
  font-size: 1rem;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Decoración de fondo */
.login-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.circle-1 {
  width: 300px;
  height: 300px;
  background-color: var(--primary-light);
  top: -100px;
  right: -100px;
  animation: float 8s infinite ease-in-out;
}

.circle-2 {
  width: 200px;
  height: 200px;
  background-color: var(--secondary-color);
  bottom: -50px;
  left: -50px;
  animation: float 10s infinite ease-in-out reverse;
}

.circle-3 {
  width: 150px;
  height: 150px;
  background-color: var(--accent-color);
  bottom: 100px;
  right: 100px;
  animation: float 12s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, 20px);
  }
  50% {
    transform: translate(0, 40px);
  }
  75% {
    transform: translate(-20px, 20px);
  }
}

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

/* Responsive */
@media (max-width: 768px) {
  .login-card {
    padding: 30px;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }

  .paddle-icon {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 25px;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .paddle-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}