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

/* style/login.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-login {
  background-color: var(--shbet1-background);
  color: var(--shbet1-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 0; /* Handled by body in shared.css */
}

.page-login__hero-section {
  background-color: var(--shbet1-deep-green);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
}

.page-login__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.page-login__main-title {
  color: var(--shbet1-gold);
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-login__form-container {
  background-color: var(--shbet1-card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
  border: 1px solid var(--shbet1-border);
}

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

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

.page-login__form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--shbet1-text-main);
  font-weight: bold;
  font-size: 0.95em;
}

.page-login__form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--shbet1-border);
  border-radius: 8px;
  background-color: var(--shbet1-deep-green);
  color: var(--shbet1-text-main);
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__login-button {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--shbet1-button-gradient);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__login-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__register-link,
.page-login__forgot-password {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--shbet1-text-secondary);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password {
  margin-top: 10px;
  font-size: 0.9em;
}

.page-login__register-link:hover,
.page-login__forgot-password:hover {
  color: var(--shbet1-gold);
  text-decoration: underline;
}

.page-login__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: var(--shbet1-card-bg);
  border-radius: 10px;
  border: 1px solid var(--shbet1-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__section-title {
  color: var(--shbet1-gold);
  text-align: center;
  margin-bottom: 30px;
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: bold;
}

.page-login__section p {
  color: var(--shbet1-text-secondary);
  text-align: center;
  margin-bottom: 20px;
}

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

.page-login__benefit-card {
  background-color: var(--shbet1-deep-green);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--shbet1-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--shbet1-glow);
}

.page-login__benefit-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-login__benefit-title {
  color: var(--shbet1-text-main);
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-login__benefit-description {
  color: var(--shbet1-text-secondary);
  font-size: 0.95em;
  padding: 0 15px;
  text-align: left;
}

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

.page-login__game-card {
  background-color: var(--shbet1-deep-green);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--shbet1-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--shbet1-text-main);
  display: block;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--shbet1-glow);
}

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

.page-login__game-card-title {
  padding: 15px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--shbet1-text-main);
}

.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
}

.page-login__security-image {
  flex: 1 1 45%;
  min-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__security-text {
  flex: 1 1 50%;
  color: var(--shbet1-text-secondary);
  text-align: left;
}

.page-login__security-text p {
  text-align: left;
  margin-bottom: 15px;
}

.page-login__security-subtitle {
  color: var(--shbet1-text-main);
  font-size: 1.3em;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__promotions-cta .page-login__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__promotions-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--shbet1-button-gradient);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  text-align: center;
  margin-top: 20px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-login__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--shbet1-text-main);
  font-size: 1.1em;
  list-style: none; /* Remove default marker */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--shbet1-gold);
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-login__faq-answer {
  padding: 0 20px 20px;
  color: var(--shbet1-text-secondary);
  line-height: 1.7;
  font-size: 0.95em;
}

.page-login__faq-answer p {
  text-align: left;
  margin-bottom: 0;
}

.page-login__copyright {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
  color: var(--shbet1-text-secondary);
  background-color: var(--shbet1-background);
  margin-top: 40px;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__form-container {
    max-width: 100%;
    padding: 20px;
  }
  .page-login__section {
    margin: 30px auto;
    padding: 30px 15px;
  }
  .page-login__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-login__game-categories-grid {
    grid-template-columns: 1fr;
  }
  .page-login__security-content {
    flex-direction: column;
  }
  .page-login__security-image,
  .page-login__security-text {
    flex: 1 1 100%;
    min-width: unset;
  }
  .page-login__security-text p {
    font-size: 0.9em;
  }
  .page-login__security-subtitle {
    font-size: 1.2em;
  }
  .page-login__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }
  .page-login__faq-answer {
    font-size: 0.9em;
    padding: 0 15px 15px;
  }

  /* Images, buttons, video responsiveness */
  .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__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__cta-button,
  .page-login__login-button,
  .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__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }
}