:root {
  --primary-color: #1A237E;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section (Login Form Area) */
.page-login__hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), #00004d); /* Darker gradient from primary */
  color: var(--text-light);
  padding: 60px 20px 80px; /* Adjusted padding for better visual */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-login__hero-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  text-align: left;
  padding: 20px;
}

.page-login__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color); /* Use gold for title */
}

.page-login__description {
  font-size: 1.1em;
  line-height: 1.6;
  opacity: 0.9;
}

/* Login Card */
.page-login__login-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  text-align: center;
  color: var(--text-dark);
}

.page-login__card-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-login__form-group {
  margin-bottom: 20px;
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.2);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95em;
}

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
  color: var(--text-dark);
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid var(--border-color);
}

.page-login__checkbox-container:hover input ~ .page-login__checkmark {
  background-color: #ccc;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-login__checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.page-login__forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background-color: var(--secondary-color); /* Gold button */
  color: var(--text-dark); /* Dark text on gold for contrast */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-login__submit-button:hover {
  background-color: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-login__register-prompt {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.page-login__register-prompt p {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-login__register-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-login__register-link:hover {
  background-color: #0d125e; /* Slightly darker primary */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  text-align: center;
}

.page-login__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 50px;
  text-align: center;
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-login__benefit-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-login__benefit-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* CTA Section */
.page-login__cta-section {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-login__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-login__cta-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-login__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Information Section */
.page-login__info-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-login__info-content p {
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.4em;
  }
  .page-login__section-title,
  .page-login__cta-title {
    font-size: 2.2em;
  }
  .page-login__hero-container {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__hero-content {
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding: 0 15px;
  }

  .page-login__hero-section {
    padding: 40px 15px 60px;
  }

  .page-login__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-login__description {
    font-size: 1em;
  }

  .page-login__login-card {
    padding: 30px 20px;
  }

  .page-login__card-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__forgot-password-link {
    align-self: flex-end;
  }

  .page-login__submit-button,
  .page-login__register-link,
  .page-login__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* All images must be responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Image containers */
  .page-login__hero-section,
  .page-login__login-card,
  .page-login__benefits-section,
  .page-login__cta-section,
  .page-login__info-section,
  .page-login__benefits-grid,
  .page-login__benefit-item,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__section-title,
  .page-login__cta-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-login__benefits-section,
  .page-login__cta-section,
  .page-login__info-section {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__card-title {
    font-size: 1.6em;
  }
  .page-login__section-title,
  .page-login__cta-title {
    font-size: 1.8em;
  }
}

/* Contrast Fixes */
.page-login__dark-bg {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-login__light-bg {
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-login__submit-button {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}