/* style/login.css */

/* --- Base Styles --- */
.page-login {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  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: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff; /* Default for dark sections */
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0; /* Slightly lighter for descriptions */
}

.page-login__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-login__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-login__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__btn-submit {
  background-color: #EA7C07; /* Specific color for login button */
  color: #ffffff;
  border: 2px solid #EA7C07;
  width: 100%;
  padding: 15px;
  margin-top: 20px;
}

.page-login__btn-submit:hover {
  background-color: #c96806;
  border-color: #c96806;
}

.page-login__btn-text-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: normal;
  display: inline-block;
  margin-top: 10px;
}

.page-login__btn-text-link:hover {
  color: #1e87b7;
}

/* --- Section Specific Styles --- */

/* Fixed header offset */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px);
  position: relative;
  background-color: #0d0d0d; /* Slightly lighter than body black for distinction */
  padding-bottom: 60px;
}

.page-login__hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.page-login__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-login__hero-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Form Section */
.page-login__form-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for form */
}

.page-login__form-section .page-login__section-title,
.page-login__form-section .page-login__section-description {
  color: #333333;
}

.page-login__login-form {
  max-width: 450px;
  margin: 40px auto 0;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #ffffff;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: #555;
  font-size: 0.95em;
}

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: #555;
}

.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-10px);
}

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 5px; /* Apply border-radius to images */
}

.page-login__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for titles */
}

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

/* Security Info Section */
.page-login__security-info-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

.page-login__security-info-section .page-login__section-title,
.page-login__security-info-section .page-login__section-description {
  color: #333333;
}

.page-login__security-info-section .page-login__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-login__security-content {
  flex: 1;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-login__security-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #555;
}

.page-login__security-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__security-text {
  margin-top: 20px;
  color: #555;
}

.page-login__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Game Preview Section */
.page-login__game-preview-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff;
}

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

.page-login__game-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block; /* Make the whole card clickable */
}

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

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

.page-login__game-card-title {
  font-size: 1.4em;
  margin: 20px 20px 10px;
  color: #26A9E0;
}

.page-login__game-card-text {
  font-size: 0.95em;
  margin: 0 20px 20px;
  color: #f0f0f0;
}

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

/* Promotions Callout Section */
.page-login__promotions-callout-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

.page-login__promotions-callout-section .page-login__section-title,
.page-login__promotions-callout-section .page-login__section-description {
  color: #333333;
}

.page-login__promotions-callout-section .page-login__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-login__promo-content {
  flex: 1;
}

.page-login__promo-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-login__promo-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #555;
}

.page-login__promo-item::before {
  content: '🎁'; /* Emoji for visual appeal */
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

.page-login__promo-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}