/* style/login.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A202C; /* Midnight Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

.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(--bg-dark); /* Inherited from body */
}

/* Ensure page content is not hidden by fixed header */
.page-login__hero-section {
  padding-top: 120px; /* Adjust based on shared header height */
  padding-bottom: 60px;
}

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

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

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

.page-login__main-title {
  font-size: 3.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__hero-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-light);
}

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

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1em;
  transition: border-color 0.3s ease, background-color 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);
  background-color: rgba(255, 255, 255, 0.1);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
  color: var(--text-light);
}

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

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

.page-login__forgot-password-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-login__submit-button,
.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.page-login__submit-button:hover,
.page-login__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.page-login__submit-button:active,
.page-login__btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.2);
}

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

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

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

/* Sections */
.page-login__benefits-section,
.page-login__security-section,
.page-login__troubleshoot-section,
.page-login__games-teaser-section,
.page-login__offers-section,
.page-login__mobile-access-section {
  padding: 80px 0;
}

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__light-bg .page-login__section-title {
  color: var(--secondary-color);
}

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

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

/* Benefits Grid */
.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-color: #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 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-login__benefit-text {
  font-size: 1em;
  color: #555555;
}

/* Security Section */
.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-login__security-image {
  flex: 1;
  min-width: 300px;
}

.page-login__security-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__security-text {
  flex: 2;
}

.page-login__sub-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-login__text-block {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-login__security-list {
  list-style: disc inside;
  margin-left: 20px;
  font-size: 1.05em;
}

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

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

.page-login__troubleshoot-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
}

.page-login__troubleshoot-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-login__troubleshoot-text {
  margin-bottom: 20px;
  color: #555555;
}

.page-login__troubleshoot-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-login__troubleshoot-link:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Games Teaser Section */
.page-login__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 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 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

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

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

.page-login__game-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

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

.page-login__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.page-login__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

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

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

.page-login__offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__offer-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-login__offer-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-login__offer-text {
  font-size: 1em;
  color: #555555;
}

.page-login__cta-buttons {
  text-align: center;
  margin-top: 50px;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile Access Section */
.page-login__mobile-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-login__mobile-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.page-login__mobile-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__mobile-text {
  flex: 2;
}

.page-login__app-download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.page-login__app-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

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

  .page-login__section-title {
    font-size: 2em;
  }

  .page-login__security-content,
  .page-login__mobile-content {
    flex-direction: column;
    text-align: center;
  }

  .page-login__security-image,
  .page-login__mobile-image {
    order: -1; /* Image above text on smaller screens */
  }

  .page-login__security-text,
  .page-login__mobile-text {
    text-align: center;
  }

  .page-login__security-list {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
  }

  .page-login__app-download-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-login__hero-section {
    padding-top: 100px !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
  }

  .page-login__main-title {
    font-size: 2.2em;
  }

  .page-login__hero-description {
    font-size: 1em;
  }

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

  .page-login__submit-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__app-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: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-login__button-group,
  .page-login__app-download-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshoot-section,
  .page-login__games-teaser-section,
  .page-login__offers-section,
  .page-login__mobile-access-section {
    padding: 50px 0;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-login__sub-title {
    font-size: 1.5em;
  }

  .page-login__security-img,
  .page-login__mobile-img,
  .page-login__game-image,
  .page-login__offer-image,
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-login__security-image,
  .page-login__mobile-image,
  .page-login__game-card,
  .page-login__offer-card,
  .page-login__benefit-item,
  .page-login__troubleshoot-item,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

  .page-login__section-title {
    font-size: 1.6em;
  }

  .page-login__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__form-wrapper {
    padding: 25px 15px;
  }
}