/* style/login.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles */
.page-login {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Body background from shared.css */
}

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

.page-login__section-heading {
  font-size: 2.5em;
  color: #017439; /* Brand color for headings */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  color: #FFFFFF; /* Text color for hero content over dark background */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

.page-login__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for form */
  border-radius: 10px;
}

.page-login__main-heading {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.95); /* Light background for the form itself */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #333333; /* Dark text for the form */
  text-shadow: none;
  max-width: 400px;
  margin: 0 auto;
}

.page-login__form-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 25px;
  text-align: center;
}

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

.page-login__form-group {
  text-align: left;
}

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

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

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

.page-login__checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.page-login__checkbox-label {
  color: #333333;
}

.page-login__forgot-password {
  color: #017439; /* Brand color for links */
  text-decoration: none;
}

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

.page-login__btn-primary {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login button font color */
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: block; /* Ensure it takes full width in form */
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background-color: #a00606;
}

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

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

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

.page-login__download-prompt {
  margin-top: 20px;
  text-align: center;
}

.page-login__download-text {
  font-size: 0.95em;
  color: #333333;
  margin-bottom: 10px;
}

.page-login__btn-secondary {
  background-color: #017439; /* Brand color for secondary buttons */
  color: #FFFFFF; /* White text for secondary buttons */
  padding: 12px 25px;
  border: 2px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: block; /* Ensure it takes full width */
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

/* Why Choose Section */
.page-login__why-choose-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background for contrast */
}

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

.page-login__feature-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
}

.page-login__feature-icon {
  width: 400px; /* Ensure images are not small icons */
  height: 300px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; /* Example for stylistic choice */
}

.page-login__feature-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__feature-text {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-login__game-list {
  list-style-type: disc;
  text-align: left;
  margin-left: 20px;
  margin-top: 10px;
  color: #333333;
}

.page-login__game-list li {
  margin-bottom: 5px;
}

.page-login__read-more-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push to bottom */
  display: inline-block;
}

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