/* style/login.css */

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

/* Base styles for page-login content to ensure contrast with body background */
.page-login {
  background-color: var(--background-dark); /* Ensure a consistent dark background for the main content */
  color: var(--text-main); /* Light text on dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-login h1, .page-login h2, .page-login h3, .page-login h4, .page-login h5, .page-login h6 {
  color: var(--text-main);
}

.page-login a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-login a:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

/* Sections */
.page-login__section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
}

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

.page-login__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1, other headings can be relative */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh; /* Adjust for full screen height */
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for readability */
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  margin-top: 60px; /* Push content down slightly if hero image is very tall */
}

.page-login__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* H1 with clamp */
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gold-color); /* Use gold for main title */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-login__description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
}

.page-login__login-card {
  background: var(--card-background); /* Custom card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-login__card-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: var(--text-main);
  font-weight: 600;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px); /* Adjust for padding */
  padding: 12px 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--deep-green-color);
  color: var(--text-main);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

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

.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);
}

.page-login__forgot-password-link {
  color: var(--secondary-color);
}

/* Buttons */
.page-login__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-login__register-text {
  margin-top: 25px;
  color: var(--text-secondary);
  font-size: 1em;
}

.page-login__register-link {
  color: var(--gold-color);
  font-weight: 600;
}

/* Why Login Section */
.page-login__why-login {
  background-color: var(--background-dark);
}

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

.page-login__feature-item {
  background: var(--card-background);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-main);
  font-weight: 600;
  text-align: center;
}

.page-login__feature-text {
  color: var(--text-secondary);
  font-size: 0.95em;
  text-align: center;
}

/* Login Process Section */
.page-login__login-process {
  background-color: var(--deep-green-color);
}

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

.page-login__step-item {
  background: var(--card-background);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-login__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background: var(--button-gradient);
  color: #ffffff;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

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

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

.page-login__cta-area {
  margin-top: 60px;
}

.page-login__cta-text {
  font-size: 1.3em;
  color: var(--gold-color);
  margin-bottom: 25px;
  font-weight: 600;
}

/* Troubleshooting Section */
.page-login__troubleshooting {
  background-color: var(--background-dark);
}

.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(--card-background);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

.page-login__troubleshoot-text {
  color: var(--text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-login__read-more-link {
  color: var(--secondary-color);
  font-weight: 500;
  display: inline-block;
  margin-top: 10px;
}

/* Exclusive Offers Section */
.page-login__exclusive-offers {
  background-color: var(--deep-green-color);
}

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

.page-login__offer-card {
  background: var(--card-background);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__offer-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__offer-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--text-main);
  font-weight: 600;
  text-align: center;
}

.page-login__offer-text {
  color: var(--text-secondary);
  font-size: 0.95em;
  margin-bottom: 20px;
  text-align: center;
}

/* Mobile Access Section */
.page-login__mobile-access {
  background-color: var(--background-dark);
}

.page-login__mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__mobile-text-block {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-login__mobile-subtitle {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--text-main);
  font-weight: 600;
}

.page-login__mobile-description {
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 20px;
}

.page-login__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-login__mobile-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

/* Support Section */
.page-login__support {
  background-color: var(--deep-green-color);
}

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

.page-login__channel-item {
  background: var(--card-background);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-login__channel-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-login__channel-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--text-main);
  font-weight: 600;
}

.page-login__channel-text {
  color: var(--text-secondary);
  font-size: 0.95em;
}

.page-login__contact-button, .page-login__support-button {
  margin: 20px 10px 0;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: var(--background-dark);
}

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

.page-login__faq-item {
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  color: var(--text-main);
  font-weight: 600;
  background-color: var(--deep-green-color); /* Slightly darker for question */
  border-bottom: 1px solid var(--divider-color);
}

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

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color);
  margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider-color);
}

.page-login__faq-answer p {
  margin-bottom: 1em;
}

.page-login__faq-answer a {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 30px;
  }
  .page-login__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-login__login-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: auto;
    padding: 10px 15px 40px; /* Adjust top padding for mobile */
  }
  .page-login__hero-content {
    padding: 25px;
    margin-top: 40px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__login-card {
    padding: 20px;
  }
  .page-login__form-input {
    width: 100%;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__login-button, .page-login__cta-button, .page-login__download-button, .page-login__contact-button, .page-login__support-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;
  }
  .page-login__btn-secondary {
    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-area, .page-login__support-channels {
    flex-wrap: wrap !important;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section, .page-login__card, .page-login__container, .page-login__feature-item, .page-login__step-item, .page-login__troubleshoot-item, .page-login__offer-card, .page-login__channel-item, .page-login__mobile-content, .page-login__mobile-text-block, .page-login__mobile-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__mobile-content {
    flex-direction: column-reverse; /* Image above text on mobile */
  }
  .page-login__mobile-image-wrapper {
    margin-bottom: 20px;
  }
  .page-login__channel-icon {
    width: 48px;
    height: 48px;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
  .page-login__faq-list {
    padding: 0 15px;
  }
}

/* Ensure content area images are not too small */
.page-login__feature-image, 
.page-login__offer-image, 
.page-login__mobile-image {
  min-width: 200px;
  min-height: 200px;
}

.page-login__channel-icon {
  min-width: 48px;
  min-height: 48px;
}

/* Override specific element sizes if they fall below 200px in content areas on desktop */
@media (min-width: 769px) {
  .page-login__feature-image, 
  .page-login__offer-image, 
  .page-login__mobile-image {
    width: 100%; /* Ensure they scale correctly within their grid/flex containers */
    height: 200px; /* Maintain a minimum height, object-fit will handle aspect ratio */
  }
}