/* Variables */
:root {
  --color-black: #121212;
  --color-dark-gray: #1e1e1e;
  --color-white: #ffffff;
  --color-swift-orange: #f05138;
  --gradient-orange: linear-gradient(135deg, #f05138 0%, #ff7e45 100%);
}

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

body {
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login Container */
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background: var(--color-dark-gray);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 20px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo-link h1 {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-white);
  margin: 0;
}

/* Form Styles */
.form-label {
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 8px;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--color-swift-orange);
  box-shadow: 0 0 0 2px rgba(240, 81, 56, 0.2);
  color: var(--color-white);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.btn-login {
  background: var(--gradient-orange);
  color: var(--color-white) !important;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(240, 81, 56, 0.4);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 81, 56, 0.6);
}

.login-footer {
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-footer a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.login-footer a:hover {
  color: var(--color-swift-orange);
}

/* WhatsApp Button */
.whatsapp-button {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  transition: background 0.3s;
}

.whatsapp-button:hover {
  background-color: #1ebe57;
  color: #fff;
}

.whatsapp-button svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Alert Styles */
.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    padding: 10px;
  }

  .login-box {
    padding: 30px 20px;
  }

  .whatsapp-button {
    width: 45px;
    height: 45px;
    bottom: 80px;
    right: 15px;
  }

  .whatsapp-button svg {
    width: 20px;
    height: 20px;
  }
}

footer {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 40px 0 20px 0;
  text-align: center;
  margin-top: 0;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 1000;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.main-content {
  padding-bottom: 100px; /* espacio para que el contenido no quede tapado por el footer */
}
