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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

/* Animated Background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.animated-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 100%;
  background-image: url("./assets/SBBackgound.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: moveBackgroundHorizontal 60s linear infinite;
}

/* Overlay removido para mostrar la imagen de fondo sin colores */

@keyframes moveBackgroundHorizontal {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-33.33%);
  }
  100% {
    transform: translateX(0);
  }
}

/* Main Container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
  z-index: 2;
  padding: 20px;
}

/* Logo */
.logo {
  width: auto;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Content */
.content {
  text-align: center;
  color: white;
  max-width: 500px;
}

.content-spacing {
  margin-top: 60px;
}

.title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s both;
}

.buttons {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: none;
  display: inline-block;
  height: 60px;
  width: auto;
}

.btn img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
  object-fit: contain;
  max-width: 200px;
}

.btn:hover {
  transform: scale(1.05);
}

.btn:hover img {
  transform: scale(1.05);
}

.btn-primary {
  background: transparent;
  color: white;
}

.btn-primary:hover {
  background: transparent;
  color: white;
}

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

/* Responsive */
@media (max-width: 768px) {
  body {
    height: 100vh;
    min-height: 100vh;
    overflow-x: hidden;
  }

  .animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }

  .logo {
    height: 150px;
  }

  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn {
    height: 50px;
    width: auto;
    max-width: 240px;
  }

  .btn img {
    height: 50px;
    max-width: 240px;
  }
}

/* Loading Animation */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Estilos específicos para el formulario de login */
.login-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: white;
  text-align: center;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: white;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #000000 !important;
  font-size: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-group input::placeholder {
  color: rgba(0, 0, 0, 0.6) !important;
}

.form-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  color: #000000 !important;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.error-message {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
  display: none;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

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

  .login-title {
    font-size: 1.8rem;
  }
}
