/* style/login.css */

/* --- General Page Styles --- */
.page-login {
  color: #F2FFF6; /* Text Main for dark background */
  background-color: #08160F; /* Background color */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
  /* padding-top is handled by body in shared.css, no need to add here */
}

/* Ensure body padding-top is not duplicated here for main content */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  justify-content: center;
  padding: 0 20px 60px; /* Adjust padding as needed */
  text-align: center;
  padding-top: 10px; /* Small top padding for first section */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for hero image */
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-login__hero-content-wrapper {
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__hero-content {
  background-color: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-login__main-title {
  color: #F2FFF6; /* Text Main */
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

/* --- Form Styles --- */
.page-login__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.page-login__form-group {
  text-align: left;
}

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

.page-login__input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-login__input::placeholder {
  color: #A7D9B8; /* Text Secondary */
  opacity: 0.7;
}

.page-login__input:focus {
  border-color: #57E38D; /* Glow color on focus */
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.page-login__remember-me {
  color: #A7D9B8; /* Text Secondary */
  display: flex;
  align-items: center;
  cursor: pointer;
}

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: #11A84E; /* Accent color for checkbox */
}

.page-login__forgot-password {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #F2FFF6; /* Text Main */
}

/* --- Buttons --- */
.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-login__btn-primary--large {
  padding: 18px 35px;
  font-size: 1.2rem;
  width: auto; /* Allow natural width for larger button */
  margin: 0 auto; /* Center larger button */
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid #11A84E; /* Main color as border */
  border-radius: 8px;
  background-color: transparent;
  color: #11A84E; /* Main color for text */
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #11A84E;
  color: #F2FFF6; /* Text Main */
}

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

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

.page-login__register-link:hover {
  color: #F2FFF6; /* Text Main */
}

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

.page-login__section-title {
  color: #F2FFF6; /* Text Main */
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-login__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #11A84E 0%, #22C768 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-login__text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-login__text--center {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__text--margin-top {
  margin-top: 40px;
}

/* --- Advantages Section --- */
.page-login__advantages-section {
  background-color: #11271B; /* Card BG */
  padding: 80px 0;
  text-align: center;
}

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

.page-login__grid--reverse {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.page-login__advantage-card {
  background-color: #0A4B2C; /* Deep Green */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #2E7A4E; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-login__card-icon {
  width: 100%; /* Take full width of parent */
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 250px; /* Ensure it doesn't get too big, but still responsive */
  display: block; /* Important for max-width to work correctly */
}

.page-login__card-title {
  color: #F2FFF6; /* Text Main */
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-login__card-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95rem;
  flex-grow: 1; /* Allow text to take available space */
}

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

.page-login__security-content {
  text-align: left;
  padding-right: 30px;
}

.page-login__security-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 30px;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  max-width: 100%; /* Ensure responsiveness */
}

/* --- World of 88clup Game Section --- */
.page-login__world-section {
  padding: 80px 0;
  background-color: #11271B; /* Card BG */
  text-align: center;
}

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

.page-login__game-card {
  background-color: #0A4B2C; /* Deep Green */
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
}

.page-login__game-icon {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
  max-width: 200px; /* Limit size for game icons, but ensure min 200px from GALLERY */
  display: block;
}

.page-login__game-title {
  color: #F2FFF6;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-login__game-description {
  color: #A7D9B8;
  font-size: 0.9rem;
}

/* --- Safe Login Guide Section --- */
.page-login__safe-guide-section {
  padding: 80px 0;
  background-color: #08160F; /* Background color */
}

.page-login__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-login__guide-item {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-login__guide-title {
  color: #F2FFF6;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.page-login__guide-title::before {
  content: '✓'; /* Checkmark icon */
  color: #57E38D; /* Glow color */
  font-size: 1.5rem;
  margin-right: 15px;
}

.page-login__guide-text {
  color: #A7D9B8;
  font-size: 1rem;
}

/* --- FAQ Section --- */
.page-login__faq-section {
  background-color: #11271B; /* Card BG */
  padding: 80px 0;
}

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

.page-login__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-login__faq-item summary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Border color with transparency */
}

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

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

.page-login__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #57E38D; /* Glow color */
  margin-left: 15px;
}

.page-login__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  line-height: 1.6;
}

/* --- CTA Section --- */
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F; /* Background color */
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-login__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-login__grid--reverse {
    grid-template-columns: 1fr; /* Stack on smaller screens */
  }
  .page-login__security-content,
  .page-login__security-image-wrapper {
    padding-right: 0;
    padding-left: 0;
    margin-bottom: 30px;
  }
  .page-login__security-image-wrapper {
    order: -1; /* Image above content for reverse grid on mobile */
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-login__description {
    font-size: 1rem;
  }
  .page-login__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .page-login__hero-content {
    padding: 30px 20px;
  }
  .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__btn-primary--large {
    width: 100% !important; /* Force full width on mobile */
    margin: 0 !important; /* Remove auto margin to allow full width */
  }
  .page-login__forgot-password {
    margin-left: auto; /* Push to right */
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__container {
    padding: 20px 15px;
  }
  .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__hero-image-wrapper,
  .page-login__security-image-wrapper,
  .page-login__advantage-card,
  .page-login__game-card,
  .page-login__guide-item,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* For sections that need padding, apply here if not already handled by container */
  }
  .page-login__hero-section {
    padding: 0 0 40px;
    padding-top: 10px !important; /* Small top padding for first section */
  }
  .page-login__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-login__hero-content-wrapper {
    padding: 0 15px;
  }
  .page-login__hero-content {
    padding: 25px 15px;
  }
  .page-login__advantages-section,
  .page-login__security-section,
  .page-login__world-section,
  .page-login__safe-guide-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 40px 0;
  }
  .page-login__security-content {
    padding-right: 0;
  }
  .page-login__security-image-wrapper {
    padding-left: 0;
    margin-top: 30px;
  }
  .page-login__guide-title::before {
    font-size: 1.2rem;
    margin-right: 10px;
  }
  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-login__faq-answer {
    padding: 0 20px 15px;
  }
  .page-login__world-grid {
    grid-template-columns: 1fr;
  }
}