/* style/login.css */

:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-bg-color: #1a1a2e;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --form-bg-color: rgba(255, 255, 255, 0.1);
  --form-input-bg: rgba(255, 255, 255, 0.05);
  --form-input-border: rgba(255, 255, 255, 0.2);
  --button-hover-bg: #0056b3;
  --link-color: #ffc107;
  --link-hover-color: #e0a800;
}

/* Base styles for the login page content */
.page-login {
  color: var(--light-text-color); /* Default text color for dark body background */
  background-color: var(--dark-bg-color); /* Inherited from shared.css body */
  padding-top: 120px; /* Space for fixed header - Desktop */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.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: var(--light-text-color);
  position: relative;
  padding-bottom: 15px;
}

.page-login__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-login__text-block {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light-text-color);
}

/* Hero Section - Login Form */
.page-login__hero-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-bg-color) 0%, #3a005a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('[GALLERY:bg:pg99 đăng nhập, cá cược trực tuyến, trừu tượng, nền, hiệu ứng ánh sáng]');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

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

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

.page-login__description {
  font-size: 20px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form-wrapper {
  background: var(--form-bg-color);
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--form-input-border);
  border-radius: 8px;
  background-color: var(--form-input-bg);
  color: var(--light-text-color);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox-group {
  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: rgba(255, 255, 255, 0.7);
  user-select: none;
}

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

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

.page-login__submit-button {
  width: 100%;
  padding: 15px 25px;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: none;
  border-radius: 8px;
  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.3);
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background-color: var(--button-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.page-login__submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.page-login__no-account-text {
  margin-top: 25px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

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

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #272744; /* Slightly lighter dark background */
  color: var(--light-text-color);
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.12);
}

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

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

.page-login__benefit-description {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Security Info Section */
.page-login__security-info-section {
  padding: 80px 0;
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
  text-align: center;
}

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

.page-login__security-item {
  background: rgba(0, 123, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  border-left: 5px solid var(--primary-color);
}

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

.page-login__security-item p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

.page-login__call-to-action {
  font-size: 20px;
  font-weight: bold;
  margin-top: 50px;
  color: var(--secondary-color);
}

/* Games Preview Section */
.page-login__games-preview-section {
  padding: 80px 0;
  background-color: #272744;
  color: var(--light-text-color);
}

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.page-login__game-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--secondary-color);
}

.page-login__game-description {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 20px 20px;
  color: rgba(255, 255, 255, 0.8);
  flex-grow: 1;
}

.page-login__game-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-login__game-link:hover {
  background-color: var(--button-hover-bg);
}

.page-login__call-to-action-games {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-top: 60px;
  color: var(--secondary-color);
}

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

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important; /* Space for fixed header - Mobile */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__hero-section {
    padding: 60px 0;
  }

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

  .page-login__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-login__form-wrapper {
    padding: 30px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-login__form-input {
    padding: 12px 15px;
    font-size: 15px;
  }

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

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

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

  .page-login__no-account-text {
    font-size: 14px;
  }

  .page-login__benefits-section, .page-login__security-info-section, .page-login__games-preview-section {
    padding: 60px 0;
  }

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

  .page-login__text-block {
    font-size: 15px;
  }

  .page-login__benefits-grid, .page-login__security-features, .page-login__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-item, .page-login__security-item, .page-login__game-card {
    padding: 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-login__benefit-description, .page-login__security-item p, .page-login__game-description {
    font-size: 15px;
  }

  .page-login__game-image {
    height: 180px;
  }

  .page-login__game-link {
    padding: 8px 15px;
    font-size: 14px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center;
  }

  .page-login__call-to-action, .page-login__call-to-action-games {
    font-size: 18px;
    margin-top: 40px;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}