/* ==========================================================================
   NEW LOGIN PAGE STYLES
   Inspired by the provided image, using the site's theme variables.
   ========================================================================== */

/* This wrapper creates the full-screen, centered layout */
.login-page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh; /* Takes full viewport height */
  width: 100%;
  background-color: var(--bg-primary);
  padding: 40px 20px;
}

/* The main card container */
.login-card {
  background-color: var(--bg-secondary);
  padding: 50px 40px;
  border-radius: 20px; /* Softer corners */
  border: 1px solid var(--border-primary);
  box-shadow: 0 10px 30px var(--shadow-strong-color);
  text-align: center;
  width: 100%;
  max-width: 400px;
  animation: fadeIn 0.5s ease-out;
}

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

/* The circular logo container */
.login-logo-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--shadow-color);
}

.login-logo {
  max-width: 50px;
  height: auto;
}

/* Typography styles */
.login-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 15px;
  line-height: 1.2;
}

.login-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto 35px;
}

/* Redesigned Google Button */
.google-sign-in-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background-color: var(--bg-secondary); /* Match card bg */
  color: var(--text-primary); /* Use primary text color */
  border: 1px solid var(--border-primary); /* Use primary border color */
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.google-sign-in-button:hover {
  background-color: var(--element-bg-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.google-sign-in-button .fab.fa-google {
  font-size: 1.1rem;
}

/* Terms of service text at the bottom */
.terms-of-service {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--text-disabled);
  line-height: 1.5;
}

.terms-of-service a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: var(--border-primary);
  transition: color 0.2s ease;
}

.terms-of-service a:hover {
  color: var(--accent-primary);
}

/* Hide the main site header and footer on the login page */
body.login-active .site-header,
body.login-active .site-footer {
  display: none;
}
