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

.page-login {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  background-color: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #2E7A4E; /* Border */
}

.page-login__main-title {
  font-size: clamp(2em, 3.5vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: #F2FFF6; /* Text Main */
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #A7D9B8; /* Text Secondary */
}

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 4px;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
  background-color: #11A84E; /* Primary Color */
}

.page-login__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.page-login__forgot-password-link {
  color: #F2C14E; /* Gold */
  text-decoration: none;
}

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

.page-login__btn {
  display: inline-block;
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-login__btn--primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
  transform: translateY(-2px);
}

.page-login__btn--secondary {
  background-color: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-login__btn--secondary:hover {
  background-color: #57E38D;
  color: #08160F; /* Background */
}

.page-login__register-prompt {
  margin-top: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-login__register-link {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  font-weight: 600;
}

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

.page-login__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-login__sub-section-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-top: 40px;
  margin-bottom: 25px;
}

.page-login__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefits-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

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

.page-login__feature-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-login__feature-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
}

.page-login__game-categories {
  padding: 80px 0;
}

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

.page-login__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-login__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-login__game-title {
  font-size: 1.4em;
  color: #F2FFF6; /* Text Main */
  padding: 15px 20px 10px;
}

.page-login__game-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.9em;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-login__game-card .page-login__btn {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-login__promotions-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
  border-top: 1px solid #1E3A2A; /* Divider */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

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

.page-login__promo-card {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__promo-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-login__promo-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  margin-bottom: 25px;
}

.page-login__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-login__support-faq-section {
  padding: 80px 0;
}

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

.page-login__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
}

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

.page-login__faq-item summary:hover {
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  color: #57E38D; /* Glow */
}

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

.page-login__faq-answer {
  padding: 15px 25px 20px;
  background-color: #0A4B2C; /* Deep Green */
  color: #A7D9B8; /* Text Secondary */
  font-size: 1em;
  text-align: left;
}

.page-login__faq-answer p {
  margin: 0;
}

.page-login__app-download-cta {
  background-color: #0A4B2C; /* Deep Green */
  padding: 80px 0;
  border-top: 1px solid #1E3A2A; /* Divider */
}

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

@media (max-width: 768px) {
  .page-login__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__hero-section {
    padding: 40px 15px !important;
    padding-top: 10px !important;
  }

  .page-login__hero-content {
    padding: 25px;
    max-width: 100%;
  }

  .page-login__main-title {
    font-size: 1.8em !important;
  }

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

  .page-login__btn {
    font-size: 1em;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-login__sub-section-title {
    font-size: 1.5em !important;
  }

  .page-login__text-block {
    font-size: 0.95em;
  }

  .page-login__feature-icon,
  .page-login__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__feature-grid,
  .page-login__game-grid,
  .page-login__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-login__feature-card,
  .page-login__game-card,
  .page-login__promo-card {
    padding: 20px;
  }

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

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

  .page-login__cta-center .page-login__btn {
    width: auto;
    min-width: 200px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .page-login__hero-content {
    padding: 20px;
  }
  .page-login__main-title {
    font-size: 1.5em !important;
  }
  .page-login__section-title {
    font-size: 1.6em !important;
  }
  .page-login__feature-icon {
    width: 80px;
    height: 80px;
  }
}