.page-login {
  background-color: var(--background-color, #0A0A0A); /* Fallback to custom BG if shared not defined */
  color: var(--text-main-color, #FFF6D6); /* Text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* General padding for the bottom of the main content */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-login__hero-image img {
  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: 800px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
  font-weight: bold;
  color: var(--text-main-color, #FFF6D6); /* Ensure light text on dark background */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  border: none;
}

.page-login__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--text-main-color, #FFF6D6); /* Light text for transparent button */
  border: 2px solid var(--border-color, #3A2A12);
}

.page-login__btn-secondary:hover {
  background: var(--border-color, #3A2A12);
  color: #FFF6D6;
  transform: translateY(-2px);
}

.page-login__btn-submit {
  width: 100%;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  border: none;
  margin-top: 20px;
  font-size: 1.1em;
}

.page-login__btn-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}


/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  background-color: var(--card-bg-color, #111111);
  margin-top: 40px;
  border-radius: 10px;
}

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

.page-login__section-description {
  font-size: 1em;
  color: #cccccc;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px auto;
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  background-color: var(--background-color, #0A0A0A);
  border-radius: 10px;
  border: 1px solid var(--border-color, #3A2A12);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main-color, #FFF6D6);
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 5px;
  background-color: #1a1a1a;
  color: var(--text-main-color, #FFF6D6);
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-input:focus {
  border-color: #FFD36B;
  outline: none;
  box-shadow: 0 0 5px rgba(255, 211, 107, 0.5);
}

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

.page-login__remember-me {
  color: #cccccc;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.page-login__remember-me input[type="checkbox"] {
  accent-color: #F2C14E; /* Highlight checkbox with brand color */
}

.page-login__forgot-password {
  color: #FFD36B;
  text-decoration: none;
}

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

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

.page-login__register-prompt a {
  color: #FFD36B;
  text-decoration: none;
  font-weight: bold;
}

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

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  margin-top: 40px;
}

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

.page-login__security-item {
  background-color: var(--card-bg-color, #111111);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color, #3A2A12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__security-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-login__item-title {
  font-size: 1.4em;
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__item-description {
  color: #cccccc;
  font-size: 0.95em;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  margin-top: 40px;
  background-color: var(--card-bg-color, #111111);
  border-radius: 10px;
}

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

.page-login__benefit-card {
  background-color: var(--background-color, #0A0A0A);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color, #3A2A12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__card-title {
  font-size: 1.3em;
  color: var(--text-main-color, #FFF6D6);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__card-description {
  color: #cccccc;
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Xổ Số S66 Info Section */
.page-login__xs66-info-section {
  padding: 60px 0;
  margin-top: 40px;
}

.page-login__xs66-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow content to wrap */
}

.page-login__xs66-text {
  flex: 1;
  min-width: 300px;
}

.page-login__xs66-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

.page-login__sub-title {
  font-size: 1.5em;
  color: #FFD36B; /* Highlight with auxiliary color */
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__xs66-text p {
  color: #cccccc;
  margin-bottom: 15px;
}


/* App Download Section */
.page-login__app-download-section {
  padding: 60px 0;
  margin-top: 40px;
  background-color: var(--card-bg-color, #111111);
  border-radius: 10px;
}

.page-login__app-container {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-login__app-content {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__app-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

.page-login__app-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  margin-top: 40px;
}

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

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