/* --- Variables Globales para un Mantenimiento Sencillo --- */
:root {
  --headings-font: "Poppins", sans-serif;
  --primary-color: #6a2c91;
  --primary-hover: #8e44ad;
  --text-color-dark: #34495e;
  --text-color-light: #ffffff;
  --border-color: #e0e0e0;
  --background-light: #ffffff;
  --background-page: #f4f6f9;
  --button-dark-bg: #2c3e50;
}

/* --- Estilos Base y del Cuerpo --- */
body {
  font-family: var(--headings-font);
  line-height: 1.6;
  background-color: var(--background-page);
  margin: 0;
  color: var(--text-color-dark);
}

/* --- Contenedor Principal --- */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

/* --- Caja de Login --- */
.login-box {
  background-color: var(--background-light);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem 2.5rem;
  border-radius: 0.75rem;
  max-width: 450px;
  width: 100%;
  text-align: center;
  border-top: 4px solid var(--primary-color);
}

.login-title {
  font-size: 1.8rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color-dark);
  font-weight: 700;
}

.login-info-text {
  color: #7f8c8d;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* --- Contenedor de Botones (con Grid) --- */
.login-button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Mantiene dos columnas de igual tamaño */
  gap: 1rem;
  margin-bottom: 2rem;
  justify-items: center; /* Centra los botones horizontalmente en sus celdas */
}

/* --- Estilo Unificado para Botones de Autenticación --- */
.auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 160px; /* Ancho fijo para que todos los botones sean iguales */
  height: 50px;
  padding: 0 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-color-light);
  background-color: var(--button-dark-bg);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  text-decoration: none;
}

.auth-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  background-color: #34495e;
}

.auth-button svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

/* --- Textos Legales y Enlaces --- */
.legal-text {
  font-size: 0.8rem;
  color: #95a5a6;
}

.legal-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.legal-text a:hover {
  text-decoration: underline;
}

.footer-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* --- Diseño Responsivo Mejorado --- */
@media (max-width: 640px) {
  .login-box {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

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

  .login-info-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .login-button-grid {
    grid-template-columns: 1fr; /* Apila los botones en una sola columna */
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
