/* style/login.css */
/* Body background is #08160F (dark), so text should be light */

/* Variables for custom colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-login {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--background); /* #08160F */
  line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: var(--deep-green); /* Use deep green for hero background for contrast */
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px; /* Space between image and text */
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  width: 1200px; /* Example width for layout slot */
  height: 675px; /* Example height for layout slot */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  background-color: var(--background); /* #08160F */
}

.page-login__login-card {
  background-color: var(--card-bg); /* #11271B */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-login__card-title {
  color: var(--gold-color); /* #F2C14E */
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 8px;
  font-size: 0.95em;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  background-color: var(--deep-green); /* #0A4B2C */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 8px;
  color: var(--text-main); /* #F2FFF6 */
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(242, 255, 246, 0.6); /* Lighter placeholder text */
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

.page-login__checkbox-label {
  color: var(--text-secondary); /* #A7D9B8 */
  font-size: 0.9em;
}

.page-login__forgot-password-link {
  color: var(--glow-color); /* #57E38D */
  text-decoration: none;
  font-size: 0.9em;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary a,
.page-login__btn-secondary a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.page-login__btn-primary {
  background: var(--button-gradient); /* linear-gradient */
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

.page-login__register-text {
  color: var(--text-secondary); /* #A7D9B8 */
  text-align: center;
  margin-top: 20px;
  font-size: 0.95em;
}

.page-login__register-link {
  color: var(--gold-color); /* #F2C14E */
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-login__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--gold-color); /* #F2C14E */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__benefit-item {
  background-color: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color); /* #2E7A4E */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 350px; /* Ensure cards have minimum height for content */
}

.page-login__benefit-icon {
  width: 250px; /* Minimum size requirement */
  height: 187px; /* 4:3 aspect ratio */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-text {
  color: var(--text-secondary); /* #A7D9B8 */
  font-size: 0.95em;
}

.page-login__cta-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--divider-color); /* #1E3A2A */
}

.page-login__cta-text {
  font-size: 1.2em;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 25px;
  font-weight: bold;
}

.page-login__btn-secondary {
  background: var(--card-bg); /* #11271B */
  color: var(--glow-color); /* #57E38D */
  border: 2px solid var(--glow-color); /* #57E38D */
  max-width: 300px; /* Limit width for secondary button */
  margin: 0 auto;
}

.page-login__btn-secondary:hover {
  background: var(--glow-color); /* #57E38D */
  color: var(--deep-green); /* #0A4B2C */
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.6);
}

/* Guide Section */
.page-login__guide-section {
  padding: 80px 0;
  background-color: var(--background); /* #08160F */
  text-align: center;
}

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

.page-login__step-item {
  background-color: var(--card-bg); /* #11271B */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color); /* #2E7A4E */
  text-align: left;
  min-height: 220px;
}

.page-login__step-title {
  font-size: 1.4em;
  color: var(--gold-color); /* #F2C14E */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__step-text {
  color: var(--text-secondary); /* #A7D9B8 */
  font-size: 0.95em;
}

.page-login__security-tip {
  margin-top: 50px;
  font-size: 1.1em;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--deep-green); /* #0A4B2C */
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--glow-color); /* #57E38D */
}

.page-login__security-tip strong {
  color: var(--gold-color); /* #F2C14E */
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--deep-green); /* #0A4B2C */
  text-align: center;
}

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

.page-login__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--border-color); /* #2E7A4E */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
  list-style: none; /* For details tag */
}

.page-login__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit */
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  color: var(--text-main); /* #F2FFF6 */
  font-weight: bold;
  background-color: var(--card-bg); /* #11271B */
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: var(--deep-green); /* #0A4B2C */
}

.page-login__faq-toggle {
  font-size: 1.5em;
  color: var(--glow-color); /* #57E38D */
  margin-left: 15px;
}

.page-login__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--text-secondary); /* #A7D9B8 */
  font-size: 0.95em;
  line-height: 1.8;
}

/* Contact Section */
.page-login__contact-section {
  padding: 80px 0;
  background-color: var(--background); /* #08160F */
  text-align: center;
}

.page-login__contact-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Ensure images in content area are at least 200x200px */
.page-login img:not(.page-login__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-login__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
}

@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px !important; /* Ensure padding on mobile */
  }

  .page-login__hero-section,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__contact-section {
    padding: 40px 0 !important; /* Adjust section padding for mobile */
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All content containers responsive */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-image-wrapper,
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__faq-list,
  .page-login__contact-methods {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  /* Buttons responsive */
  .page-login__cta-button,
  .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__contact-methods {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 15px !important;
  }

  .page-login__hero-content {
    padding: 0 15px;
  }

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

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

  .page-login__benefits-grid,
  .page-login__guide-steps {
    grid-template-columns: 1fr; /* Single column layout for grids */
  }

  .page-login__benefit-item,
  .page-login__step-item {
    min-height: auto; /* Allow height to adjust */
  }

  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-login__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
  }
  .page-login__hero-description,
  .page-login__section-description,
  .page-login__cta-text,
  .page-login__security-tip {
    font-size: 0.95em;
  }
  .page-login__login-card {
    margin: 0 10px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}