/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  line-height: 1.6;
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Ensure image doesn't get too tall */
}

.page-login__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1;
  /* Forced上图下文, 禁止在主图上叠字 -- This section is a compromise for hero image and text. The content is positioned absolutely but with a dark overlay to ensure readability and it's not directly 'on top' of the image without a background. Given the strict '上图下文' and '禁止叠字' rule, a hero section with text overlay is typically forbidden. However, for a prominent H1, a background with text overlay is a common pattern. I'll make sure the image is visually distinct from the text box. */
  /* Re-evaluating: The instruction '禁止在主图上叠字' is very strict. I will change the hero layout to be purely 'image then text' in normal document flow. */
  position: static; /* Remove absolute positioning */
  transform: none; /* Remove transform */
  background: none; /* No overlay */
  padding: 0; /* No padding */
  box-shadow: none;
  width: 100%;
  max-width: 100%;
  margin-top: 20px; /* Space between image and text */
}

.page-login__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: bold;
  color: #F2C14E; /* Primary color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.page-login__hero-description {
  font-size: 1.1em;
  color: #FFF6D6;
  max-width: 700px;
  margin: 0 auto 20px auto;
}

/* Login Form Section */
.page-login__login-form-section {
  padding: 60px 0;
  background-color: #0A0A0A;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.2em;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-login__login-form {
  background-color: #111111; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #3A2A12; /* Border */
}

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

.page-login__form-label {
  display: block;
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #3A2A12;
  border-radius: 5px;
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 246, 214, 0.6);
}

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

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #F2C14E;
}

.page-login__checkbox-label {
  color: #FFF6D6;
}

.page-login__forgot-password {
  color: #FFD36B; /* Glow */
  text-decoration: none;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A; /* Dark text on button for contrast */
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none; /* For anchor tags styled as buttons */
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  transform: translateY(-2px);
}

.page-login__register-prompt {
  margin-top: 25px;
  color: #FFF6D6;
  font-size: 0.95em;
}

.page-login__register-link {
  color: #FFD36B; /* Glow */
  text-decoration: none;
  font-weight: bold;
}

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

/* gcash Advantage Section */
.page-login__gcash-advantage-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-login__two-column-layout {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-login__content-block {
  flex: 1;
}

.page-login__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12;
}

.page-login__sub-title {
  font-size: 1.6em;
  color: #FFD36B;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-login__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-login__feature-item {
  background: #111111; /* Card BG */
  padding: 15px;
  margin-bottom: 10px;
  border-left: 5px solid #F2C14E;
  border-radius: 5px;
  color: #FFF6D6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #F2C14E;
  border-radius: 5px;
  background-color: transparent;
  color: #F2C14E;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  margin-top: 20px;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 60px 0;
  background-color: #0A0A0A;
  text-align: center;
}

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

.page-login__card {
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  color: #FFF6D6;
}

.page-login__card-title {
  font-size: 1.4em;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-login__cta-block {
  margin-top: 50px;
}

.page-login__cta-block p {
  max-width: 700px;
  margin: 0 auto 25px auto;
  font-size: 1.1em;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-login__two-column-layout--reverse {
  flex-direction: row-reverse;
}

/* Explore Section */
.page-login__explore-section {
  padding: 60px 0;
  background-color: #0A0A0A;
  text-align: center;
}

.page-login__grid-layout--three-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-login__explore-card {
  text-align: center;
}

.page-login__explore-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Make icons circular if desired */
  border: 2px solid #F2C14E;
  padding: 15px;
  box-sizing: border-box;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-login__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111;
  color: #F2C14E;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #1A1A1A;
}

.page-login__faq-title {
  margin: 0;
  color: #F2C14E;
  font-size: 1em;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Space between paragraphs if multiple */
}

.page-login__faq-answer a {
  color: #FFD36B;
  text-decoration: none;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
}

/* Conclusion Section */
.page-login__conclusion-section {
  padding: 60px 0;
  background-color: #0A0A0A;
  text-align: center;
}

.page-login__btn-primary--large {
  padding: 18px 35px;
  font-size: 1.3em;
  margin-top: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__two-column-layout {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__two-column-layout--reverse {
    flex-direction: column;
  }
  .page-login__hero-image {
    max-height: 500px;
  }
  .page-login__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
  }

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

  .page-login__hero-image {
    max-height: 400px;
  }

  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }

  .page-login__hero-description {
    font-size: 1em;
  }

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

  .page-login__section-description {
    font-size: 0.95em;
  }

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

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

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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;
  }

  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__explore-icon {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-section {
    padding-top: 5px;
  }
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__sub-title {
    font-size: 1.4em;
  }
  .page-login__login-form {
    padding: 25px 15px;
  }
  .page-login__btn-primary--large {
    font-size: 1.1em;
    padding: 15px 20px;
  }
}