/* style/login.css */

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Default text color for dark background */
  background-color: #08160F; /* Background color from custom palette */
}

.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;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
  color: #F2FFF6;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-login__hero-content {
  z-index: 1;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image wrapper for visual flow */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 100%);
  padding: 40px;
  border-radius: 10px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2C14E; /* Gold color for main title */
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-login__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* Green from button gradient */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-login__btn-secondary:hover {
  background: #2E7A4E;
  color: #F2FFF6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 122, 78, 0.4);
}

/* Section Titles */
.page-login__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E;
}

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

.page-login__form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background-color: #11271B;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin: 0 auto;
}

.page-login__form-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__login-form {
  width: 100%;
  max-width: 400px;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E;
  border-radius: 5px;
  background-color: #0A4B2C;
  color: #F2FFF6;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #A7D9B8;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-login__btn-submit {
  flex-grow: 1;
}

.page-login__link-forgot {
  color: #A7D9B8;
  text-decoration: none;
  font-size: 0.9em;
}

.page-login__link-forgot:hover {
  text-decoration: underline;
  color: #57E38D;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  color: #A7D9B8;
}

.page-login__link-register {
  color: #57E38D;
  text-decoration: none;
  font-weight: bold;
}

.page-login__link-register:hover {
  text-decoration: underline;
}

/* Content Section (dark background) */
.page-login__dark-section {
  background-color: #11271B;
  color: #F2FFF6;
  padding: 80px 0;
}

.page-login__content-section p, .page-login__content-section li {
  color: #A7D9B8;
}

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

.page-login__step-item {
  background-color: #0A4B2C;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #2E7A4E;
}

.page-login__step-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #57E38D;
}

.page-login__step-description strong {
  color: #F2C14E;
}

/* Troubleshooting Section */
.page-login__troubleshoot-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-login__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-login__grid-two-cols--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-login__troubleshoot-content {
  color: #A7D9B8;
}

.page-login__troubleshoot-content strong {
  color: #F2FFF6;
}

.page-login__sub-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2C14E;
}

.page-login__troubleshoot-image-wrapper {
  text-align: center;
}

.page-login__troubleshoot-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Why Choose Section */
.page-login__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__feature-item {
  background-color: #0A4B2C;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #2E7A4E;
  color: #A7D9B8;
}

.page-login__feature-item strong {
  color: #F2C14E;
}

.page-login__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #57E38D;
}

.page-login__feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

/* App Download Section */
.page-login__app-download-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-login__app-content {
  color: #A7D9B8;
}

.page-login__app-content strong {
  color: #F2FFF6;
}

.page-login__app-image-wrapper {
  text-align: center;
}

.page-login__app-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* FAQ Section */
.page-login__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__faq-item {
  background-color: #0A4B2C;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  overflow: hidden;
}

.page-login__faq-item summary {
  list-style: none;
}

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

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

.page-login__faq-question:hover {
  background-color: #2E7A4E;
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D;
}

.page-login__faq-answer {
  padding: 15px 25px 25px;
  color: #A7D9B8;
  border-top: 1px solid #2E7A4E;
}

/* Responsible Gambling Section */
.page-login__responsible-gambling-section {
  padding: 60px 0;
  background-color: #08160F;
  text-align: center;
  color: #A7D9B8;
}

.page-login__responsible-gambling-section a {
  color: #57E38D;
  text-decoration: none;
  font-weight: bold;
}

.page-login__responsible-gambling-section a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-login__grid-two-cols {
    grid-template-columns: 1fr;
  }
  .page-login__grid-two-cols--reverse {
    grid-template-columns: 1fr;
  }
  .page-login__troubleshoot-image-wrapper,
  .page-login__app-image-wrapper {
    order: -1; /* Image above content on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-login__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

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

  .page-login__description {
    font-size: 1em;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    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__form-wrapper {
    padding: 30px 20px;
  }

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

  .page-login__link-forgot {
    width: 100%;
    text-align: center;
  }

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

  .page-login__dark-section,
  .page-login__troubleshoot-section,
  .page-login__app-download-section,
  .page-login__responsible-gambling-section {
    padding: 40px 0;
  }

  /* Image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-image-wrapper,
  .page-login__form-image,
  .page-login__troubleshoot-image-wrapper,
  .page-login__feature-image,
  .page-login__app-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 10px 20px 20px;
  }
}