/* style/login.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-light: #f8f9fa;
  --border-color: #e0e0e0;
}

/* Reset & Base Styles for page-login scope */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherited from body, ensure contrast */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

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

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-login__section-title .highlight {
  color: var(--primary-color);
}

.page-login__subtitle {
  font-size: 20px;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-login .highlight {
  font-weight: bold;
  color: var(--primary-color);
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 80px 0;
  background-image: url('[GALLERY:bg:nổ hũ hi88,cá cược trực tuyến,login_hero,background]');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--text-light);
  padding-top: 10px; /* Specific padding for hero/video section */
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.page-login__hero-section .page-login__container {
  position: relative;
  z-index: 1;
}

.page-login__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 40px;
  max-width: 450px;
  margin: 40px auto 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__form-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--text-light);
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-light);
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-login__form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
  outline: none;
}

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

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

.page-login__checkbox-label {
  color: var(--text-light);
}

.page-login__forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-login__login-button {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__login-button:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.page-login__register-prompt {
  margin-top: 25px;
  font-size: 15px;
  color: var(--text-light);
}

.page-login__register-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* General Section Styles */
.page-login__benefits-section,
.page-login__security-section,
.page-login__troubleshooting-section,
.page-login__register-cta-section,
.page-login__about-section {
  padding: 60px 0;
}

.page-login__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-login__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-login__benefit-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__benefit-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Security Section */
.page-login__security-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-light);
}

.page-login__security-content p {
  margin-bottom: 20px;
}

.page-login__security-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__security-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-login__security-list li {
  margin-bottom: 10px;
}

/* Troubleshooting Section */
.page-login__troubleshooting-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-login__troubleshooting-content p {
  margin-bottom: 20px;
}

.page-login__troubleshooting-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  border-left: 5px solid var(--primary-color);
}

.page-login__troubleshooting-item:last-child {
  margin-bottom: 0;
}

.page-login__troubleshooting-subtitle {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-login__contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__contact-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Register CTA Section */
.page-login__register-cta-section {
  text-align: center;
  background-image: url('[GALLERY:bg:nổ hũ hi88,cá cược trực tuyến,register_cta,background]');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  position: relative;
}

.page-login__register-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 0;
}

.page-login__register-cta-section .page-login__container {
  position: relative;
  z-index: 1;
}

.page-login__cta-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 22px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__cta-button:hover {
  background: #218838;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.7);
}

.page-login__cta-small-text {
  margin-top: 20px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.page-login__about-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-login__about-content p {
  margin-bottom: 20px;
}

.page-login__read-more-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__read-more-link:hover {
  background: #0056b3;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 40px;
  }

  .page-login__section-title {
    font-size: 32px;
  }

  .page-login__form-wrapper {
    padding: 30px;
  }

  .page-login__benefit-icon {
    width: 120px;
    height: 120px;
  }

  .page-login__benefit-title {
    font-size: 20px;
  }

  .page-login__security-content,
  .page-login__troubleshooting-content,
  .page-login__about-content {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .page-login__hero-section {
    padding: 60px 0;
    padding-top: 10px !important; /* Mobile specific padding */
  }

  .page-login__main-title {
    font-size: 32px;
  }

  .page-login__subtitle {
    font-size: 18px;
  }

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

  .page-login__form-wrapper {
    padding: 25px;
    margin: 30px auto 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-login__form-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .page-login__remember-me {
    margin-bottom: 10px;
  }

  .page-login__login-button,
  .page-login__cta-button {
    padding: 12px 25px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__register-prompt {
    font-size: 14px;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-login__benefit-item {
    padding: 25px;
  }

  .page-login__benefit-icon {
    width: 100px;
    height: 100px;
  }

  .page-login__benefit-title {
    font-size: 18px;
  }

  .page-login__security-content,
  .page-login__troubleshooting-content,
  .page-login__about-content {
    font-size: 15px;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-login__security-subtitle,
  .page-login__troubleshooting-subtitle {
    font-size: 20px;
  }

  .page-login__security-list {
    margin-left: 15px;
  }

  .page-login__cta-description {
    font-size: 18px;
  }

  .page-login__read-more-link {
    padding: 10px 20px;
    font-size: 16px;
  }

  /* Image responsive */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__container, .page-login__hero-section, .page-login__benefits-section, .page-login__security-section, .page-login__troubleshooting-section, .page-login__register-cta-section, .page-login__about-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 28px;
  }

  .page-login__section-title {
    font-size: 24px;
  }

  .page-login__form-title {
    font-size: 22px;
  }

  .page-login__login-button,
  .page-login__cta-button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .page-login__benefit-title {
    font-size: 16px;
  }

  .page-login__security-subtitle,
  .page-login__troubleshooting-subtitle {
    font-size: 18px;
  }
}