/* style/login.css */

:root {
  --primary-color: #0A2239;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --background-light: #f8f9fa;
  --form-bg: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
  --button-hover-dark: #071a2b;
  --button-hover-light: #e6c200;
}

.page-login {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark, so text should be light */
  line-height: 1.6;
  background-color: var(--background-dark); /* Ensure main content adheres to body background */
  padding-top: 120px; /* Adjust for fixed header */
}

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

/* Hero Section & Form */
.page-login__hero-section {
  background: url('[GALLERY:login_hero_bg:f168s, cá cược Việt Nam, đăng nhập, nền, trừu tượng, công nghệ]') no-repeat center center/cover;
  padding: 80px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.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: -1;
}

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

.page-login__main-title {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 30px;
}

.page-login__login-form {
  text-align: left;
}

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

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

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 16px;
  box-sizing: border-box;
}

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

.page-login__input:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.page-login__password-wrapper {
  position: relative;
}

.page-login__toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  user-select: none;
}

.page-login__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.page-login__forgot-password {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: var(--text-light);
}

.page-login__login-button {
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none; /* For button styled links */
  display: inline-block;
  text-align: center;
}

.page-login__login-button:hover {
  background-color: var(--button-hover-light);
  transform: translateY(-2px);
}

.page-login__register-prompt {
  font-size: 16px;
  color: var(--text-light);
  text-align: center;
  margin-top: 20px;
}

.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: var(--text-light);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: var(--background-light);
  color: var(--text-dark);
  text-align: center;
}

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

.page-login__benefits-intro {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__benefits-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-login__benefits-item:hover {
  transform: translateY(-5px);
}

.page-login__benefits-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__benefits-item-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-login__benefits-item p {
  font-size: 15px;
  color: #555555;
}

/* Games Section */
.page-login__games-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-login__games-title {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__games-intro {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-login__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

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

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

.page-login__game-card-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 15px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 32px;
  }
  .page-login__description {
    font-size: 16px;
  }
  .page-login__benefits-title,
  .page-login__games-title {
    font-size: 28px;
  }
  .page-login__form-wrapper {
    padding: 30px;
  }
  .page-login__benefits-item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important; /* Mobile adjust for fixed header */
    font-size: 15px;
  }
  .page-login__container {
    padding: 0 15px;
  }
  .page-login__hero-section {
    padding: 60px 0;
  }
  .page-login__form-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 25px;
  }
  .page-login__main-title {
    font-size: 28px;
  }
  .page-login__description {
    font-size: 14px;
  }
  .page-login__login-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 15px;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__form-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-login__forgot-password {
    order: 2; /* Move forgot password below button if it's a separate link */
    width: 100%;
    text-align: center;
  }
  .page-login__register-prompt {
    font-size: 14px;
  }
  .page-login__benefits-section,
  .page-login__games-section {
    padding: 40px 0;
  }
  .page-login__benefits-title,
  .page-login__games-title {
    font-size: 24px;
  }
  .page-login__benefits-intro,
  .page-login__games-intro {
    font-size: 15px;
  }
  .page-login__benefits-icon {
    width: 80px;
    height: 80px;
  }
  .page-login__benefits-item-title {
    font-size: 18px;
  }
  .page-login__game-card-image {
    height: 180px;
  }
  .page-login__game-card-title {
    font-size: 18px;
  }
  .page-login__game-card-description {
    font-size: 14px;
  }
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__benefits-item,
  .page-login__game-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 24px;
  }
  .page-login__benefits-title,
  .page-login__games-title {
    font-size: 20px;
  }
  .page-login__form-wrapper {
    padding: 20px;
  }
  .page-login__login-button {
    font-size: 15px !important;
  }
  .page-login__benefits-item-title {
    font-size: 16px;
  }
  .page-login__game-card-image {
    height: 160px;
  }
  .page-login__game-card-title {
    font-size: 16px;
  }
}