/* style/login.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login-color: #EA7C07;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
}

.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--secondary-color);
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #aed6f1 100%); /* Light blue gradient */
  color: var(--text-light);
}

.page-login__hero-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 20px;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__intro-text {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form {
  background: var(--secondary-color);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
  margin: 20px auto 0;
  text-align: left;
}

.page-login__form-group {
  margin-bottom: 25px;
}

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__submit-button {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--button-login-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__submit-button:hover {
  background-color: #d16b06;
  transform: translateY(-2px);
}

.page-login__links {
  margin-top: 20px;
  text-align: center;
}

.page-login__link {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95em;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  color: #1e87c0;
  text-decoration: underline;
}

/* General Section Styles */
.page-login__section {
  padding: 80px 20px;
  background-color: var(--secondary-color);
}

.page-login__section:nth-of-type(even) {
  background-color: var(--background-light);
}

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

.page-login__container--center {
  text-align: center;
}

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

.page-login__section-description {
  font-size: 1.1em;
  color: var(--text-dark);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

/* Benefits Section */
.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__benefit-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__card-text {
  font-size: 1em;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Security Section */
.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__security-item {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease;
}

.page-login__security-item:hover {
  border-color: var(--primary-color);
}

.page-login__item-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-login__item-text {
  font-size: 0.95em;
  color: var(--text-dark);
  line-height: 1.6;
}

.page-login__security-footer-text {
  text-align: center;
  margin-top: 50px;
  font-size: 1em;
  color: var(--text-dark);
}

/* Explore Section */
.page-login__explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__explore-item {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-login__explore-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__explore-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-login__explore-item .page-login__item-title {
  padding: 20px 15px 10px;
  font-size: 1.25em;
}

.page-login__explore-item .page-login__item-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__explore-item .page-login__item-title a:hover {
  color: #1e87c0;
  text-decoration: underline;
}

.page-login__explore-item .page-login__item-text {
  padding: 0 15px 20px;
  font-size: 0.95em;
  color: var(--text-dark);
}

/* Troubleshoot Section */
.page-login__troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__troubleshoot-item {
  background: var(--secondary-color);
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
}

/* Register Section */
.page-login__section--register {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-login__section--register .page-login__section-title,
.page-login__section--register .page-login__section-description {
  color: var(--text-light);
}

.page-login__cta-button--register {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-login-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: var(--background-light);
  border-color: var(--primary-color);
}

.page-login__faq-question:active {
  background: #eeeeee;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Change to a cross or simply invert */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: var(--background-light);
  color: var(--text-dark);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

.page-login__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

/* News Section */
.page-login__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__news-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-login__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__news-image {
  width: 100%;
  height: 220px; /* Consistent image height for news cards */
  object-fit: cover;
  display: block;
}

.page-login__news-card .page-login__card-title {
  padding: 20px 20px 10px;
  font-size: 1.3em;
  color: var(--primary-color);
  text-align: left;
}

.page-login__news-card .page-login__card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__news-card .page-login__card-title a:hover {
  color: #1e87c0;
  text-decoration: underline;
}

.page-login__news-card .page-login__card-text {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: var(--text-dark);
  flex-grow: 1;
  text-align: left;
}

.page-login__read-more {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-login__read-more:hover {
  background: #1e87c0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }

  .page-login__intro-text {
    font-size: 1.2em;
  }

  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-image img {
    border-radius: 8px;
  }

  .page-login__hero-container {
    gap: 20px;
  }

  .page-login__main-title {
    font-size: 2em;
  }

  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__form {
    padding: 30px 20px;
    border-radius: 10px;
  }

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

  .page-login__form-input {
    padding: 12px;
    border-radius: 6px;
  }

  .page-login__submit-button,
  .page-login__cta-button--register {
    padding: 14px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__links {
    margin-top: 15px;
  }

  .page-login__link {
    font-size: 0.9em;
  }

  .page-login__section {
    padding: 50px 15px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__benefits-grid,
  .page-login__security-features,
  .page-login__explore-grid,
  .page-login__troubleshoot-grid,
  .page-login__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-card,
  .page-login__security-item,
  .page-login__explore-item,
  .page-login__troubleshoot-item,
  .page-login__news-card {
    padding: 20px;
  }

  .page-login__benefit-icon {
    max-width: 180px;
  }

  .page-login__card-title,
  .page-login__item-title {
    font-size: 1.2em;
  }

  .page-login__card-text,
  .page-login__item-text {
    font-size: 0.9em;
  }

  .page-login__explore-image,
  .page-login__news-image {
    height: 180px;
  }

  .page-login__faq-question {
    padding: 15px;
  }

  .page-login__faq-question h3 {
    font-size: 1em;
  }

  .page-login__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__section,
  .page-login__container,
  .page-login__hero-section,
  .page-login__hero-container,
  .page-login__form,
  .page-login__benefits-grid,
  .page-login__security-features,
  .page-login__explore-grid,
  .page-login__troubleshoot-grid,
  .page-login__news-grid,
  .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-login__hero-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-button--register {
    margin-top: 20px;
  }
}

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

  .page-login__section-title {
    font-size: 1.6em;
  }

  .page-login__form {
    padding: 20px 15px;
  }
}