/* ── Login con Google OAuth 2.0 ─────────────────────────────────────────────── */

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

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 16px;
  margin: auto;
}

.login-form {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ── Logo ──────────────────────────────────────────────────────────────────── */

.login-logo {
  margin-bottom: 6px;
}

.login-logo__img {
  width: 200px; 
  max-height: 200px;
  object-fit: contain;
}

/* ── Encabezado Superior (Top Navbar) ─────────────────────────────────────── */

.top-header {
  width: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
}

.top-header__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.top-header__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.top-header__subtitle {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin: 0;
}

@media (min-width: 768px) {
  .top-header__content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── Botón de Google ─────────────────────────────────────────────────────────── */

.google-btn-wrapper {
  margin: 12px 0 6px;
  display: flex;
  justify-content: center;
}

/* ── Mensaje de error ───────────────────────────────────────────────────────── */

.login-error {
  width: 100%;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-top: 4px;
}

/* ── Loading ────────────────────────────────────────────────────────────────── */

.login-loading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 4px;
}

.login-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Hint ────────────────────────────────────────────────────────────────────── */

.login-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */

.login-footer {
  width: 100%;
  padding: 16px 24px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  color: #00A34F;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-brand:hover {
  opacity: 0.8;
}

.footer-slogan {
  font-size: 0.85rem;
  color: #e2e8f0;
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.75rem;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.social-links a svg {
  width: 16px;
  height: 16px;
}

/* ── Responsive Footer ──────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .footer-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .footer-bottom {
    width: 100%;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

/* ── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 440px) {
  .login-form {
    padding: 30px 22px;
    border-radius: 16px;
  }
  
  .login-footer {
    padding: 12px 16px;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 8px;
  }
}
