/* =======================
   Login Page Styles
   ======================= */
.login-container {
  max-width: 400px;
  margin: 5rem auto;
  padding: 2.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: #0056b3;
  outline: none;
}

/* =======================
   Buttons
   ======================= */
.login-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #0056b3;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-button:hover {
  background-color: #003d7a;
}

/* Google Login Button */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.google-login-button {
  width: 100%;
  padding: 0.75rem;
  background-color: white;
  color: #5f6368;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.3s;
}

.google-login-button:hover {
  background-color: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: not-allowed;
}

.google-login-button img {
  width: 18px;
  height: 18px;
}

/* =======================
   "Don't have an account?" + Register Button
   ======================= */
.account-text {
  text-align: center;
  font-size: 1.8rem; /* slightly bigger */
  margin-bottom: 0.5rem; /* closer to button */
  color: #333;
}

button#register-link {
  font-size: 1.6rem;
  padding: 1rem 2rem;
  min-height: 60px;
  border-radius: 12px;
  display: block;
  margin: 0 auto 2rem auto; /* centered, smaller top margin */
  background: linear-gradient(145deg, #1a7fe8, #0050aa);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4),
              0 1px 3px rgba(0,0,0,0.2),
              inset 0 1px 0 rgba(255,255,255,0.15);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

button#register-link:hover {
  background: linear-gradient(145deg, #2d8ff5, #0056b3);
  box-shadow: 0 8px 25px rgba(0, 86, 179, 0.5),
              0 2px 6px rgba(0,0,0,0.15),
              inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

button#register-link:active {
  background: linear-gradient(145deg, #0050aa, #003d82);
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.3),
              inset 0 2px 4px rgba(0,0,0,0.2);
  transform: translateY(1px);
}

/* =======================
   Links & Misc
   ======================= */
.login-links {
  margin-top: 1.5rem;
  text-align: center;
}

.login-links a {
  color: #0056b3;
  text-decoration: none;
  transition: color 0.2s;
}

.login-links a:hover {
  text-decoration: underline;
  color: #003366;
}

.forgot-password:hover {
  cursor: not-allowed;
}

.or-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: #5f6368;
  font-size: 0.9rem;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #dadce0;
}

.or-divider::before {
  margin-right: 1rem;
}

.or-divider::after {
  margin-left: 1rem;
}

/* =======================
   Messages
   ======================= */
.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
  display: none;
  font-size: 1.6rem;
  text-align: center;
}

.success-message.visible {
  display: block;
}

#error-message,
#account-exists {
  text-align: center;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

#account-exists {
  background-color: #dc3545;
  color: #000000;
  border: 1px solid #c3e6cb;
}

/* =======================
   Footer
   ======================= */
.footer-bottom .site-creator {
  margin-top: 10px;
  font-style: italic;
}

#linkedin_icon {
  height: 20px;
  width: 20px;
  margin-left: 5px;
}

/* =======================
   Responsive
   ======================= */
@media (max-width: 1000px) {

  .login-container {
    width: 90%;
    max-width: 650px;
    margin: 5rem auto;
    padding: 2.5rem;
    box-shadow: 0 2px 4px rgba(100, 48, 48, 0.6);
  }

  .login-container h2 {
    font-size: 3.5rem;
    margin-bottom: 2.5rem;
  }

  form {
    max-width: 100%;
    padding: 1.5rem;
    margin: 1rem;
  }

  .form-group label {
    font-size: 2.3rem;
    margin-bottom: 0.75rem;
  }

  .form-group input {
    padding: 1.25rem;
    font-size: 3rem;
    border-radius: 6px;
  }

  .login-button,
  .google-login-button {
    padding: 1rem 1.5rem;
    font-size: 2rem;
    border-radius: 6px;
    min-height: 50px;
  }

  .google-login-button img {
    width: 50px;
    height: 50px;
  }

  #links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 2rem;
  }

  .password-container {
    font-size: 3rem;
  }

  .forgot-password {
    font-size: 2rem;
  }

  .success-message {
    font-size: 2rem;
  }

  #account-exists {
    font-size: 2rem;
  }

  button#register-link {
    font-size: 2rem;
    padding: 1rem 2rem;
    min-height: 60px;
    border-radius: 12px;
    margin: 0 auto 2rem auto;
  }

  .account-text {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
}
