/* style/login.css */

/* Custom properties for colors */
:root {
  --primary-color: #0A2239;
  --secondary-color: #E6B31E;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --input-bg: rgba(255, 255, 255, 0.1);
  --input-border: rgba(255, 255, 255, 0.2);
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.15);
  --link-color: #E6B31E;
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Default text color for the dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

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

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 80px;
  overflow: hidden;
  text-align: center;
  z-index: 1;
}

.page-login__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.4);
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

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

.page-login__main-title {
  font-size: 56px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-login__hero-description {
  font-size: 20px;
  color: var(--text-on-dark);
  margin-bottom: 40px;
  max-width: 700px;
  line-height: 1.5;
}

.page-login__login-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  text-align: left;
}

.page-login__card-title {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 30px;
  text-align: center;
}

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

.page-login__label {
  display: block;
  font-size: 16px;
  color: var(--text-on-dark);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text-on-dark);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-login__input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(230, 179, 30, 0.3);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-login__checkbox-group {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: var(--secondary-color);
}

.page-login__checkbox-label {
  font-size: 15px;
  color: var(--text-on-dark);
}

.page-login__forgot-password {
  font-size: 15px;
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #fff;
  text-decoration: underline;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(230, 179, 30, 0.4);
}

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

.page-login__submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(230, 179, 30, 0.3);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.page-login__register-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: bold;
  margin-left: 5px;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #fff;
  text-decoration: underline;
}

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

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

.page-login__benefit-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure images are responsive */
  height: auto; /* Ensure images are responsive */
  display: block; /* Ensure images are block level */
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.page-login__faq-list {
  max-width: 800px;
  margin: 50px auto 0;
}

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

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

.page-login__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-on-dark);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
  color: #fff;
}

.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 25px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--card-border);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-login__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

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

.page-login__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__cta-title {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-login__cta-button:hover {
  background: #003366;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 48px;
  }
  .page-login__hero-description {
    font-size: 18px;
  }
  .page-login__login-card {
    padding: 30px;
  }
  .page-login__card-title {
    font-size: 24px;
  }
  .page-login__section-title {
    font-size: 32px;
  }
  .page-login__cta-title {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  /* Ensure content area does not cause horizontal scroll */
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__faq-section,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

  .page-login__main-title {
    font-size: 38px;
  }

  .page-login__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-login__login-card {
    padding: 25px;
    max-width: 100%;
  }

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

  .page-login__input {
    padding: 12px 15px;
    font-size: 15px;
  }

  .page-login__submit-button {
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-login__register-prompt p,
  .page-login__register-link,
  .page-login__forgot-password,
  .page-login__checkbox-label {
    font-size: 14px;
  }

  .page-login__benefits-section {
    padding: 60px 0;
  }

  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .page-login__benefit-item {
    padding: 25px;
  }

  .page-login__benefit-icon {
    width: 80px;
  }

  .page-login__benefit-title {
    font-size: 20px;
  }

  .page-login__benefit-description {
    font-size: 15px;
  }

  .page-login__faq-section {
    padding: 60px 0;
  }

  .page-login__faq-list {
    margin-top: 40px;
  }

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

  .page-login__faq-question h3 {
    font-size: 16px;
  }

  .page-login__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }

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

  .page-login__faq-answer p {
    font-size: 15px;
  }

  .page-login__cta-section {
    padding: 40px 0;
  }

  .page-login__cta-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .page-login__cta-button {
    padding: 12px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Image responsive rules */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-background {
    object-fit: cover !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 32px;
  }
  .page-login__login-card {
    padding: 20px;
  }
  .page-login__card-title {
    font-size: 20px;
  }
  .page-login__section-title {
    font-size: 24px;
  }
  .page-login__cta-title {
    font-size: 20px;
  }
  .page-login__submit-button {
    font-size: 15px;
  }
}