/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css #0a0a0a */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  overflow: hidden;
}

.page-login__hero-background-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

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

.page-login__intro-text {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 40px auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__forgot-password-link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #4db8ff;
}

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

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

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

.page-login__submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #EA7C07; /* Login specific color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__submit-button:hover {
  background-color: #d16e06;
  transform: translateY(-2px);
}

.page-login__register-prompt {
  color: #ffffff;
  text-align: center;
  margin-top: 25px;
  font-size: 0.95em;
}

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

.page-login__register-link:hover {
  color: #4db8ff;
}

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}

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

.page-login__section-footer-text {
  font-size: 1em;
  text-align: center;
  max-width: 900px;
  margin: 50px auto 0 auto;
  font-style: italic;
}

/* Light Background Section */
.page-login__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
  padding: 80px 0;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-description {
  color: #333333;
}

.page-login__light-bg .page-login__card-title {
  color: #26A9E0; /* Brand color for card titles */
}

.page-login__light-bg .page-login__card-text {
  color: #555555;
}

/* Dark Background Section */
.page-login__dark-bg {
  background-color: #26A9E0; /* Main brand color background */
  color: #ffffff; /* White text for contrast */
  padding: 80px 0;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description {
  color: #ffffff;
}

.page-login__dark-bg .page-login__item-title {
  color: #ffffff;
}

.page-login__dark-bg .page-login__item-text {
  color: #f0f0f0;
}

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

.page-login__benefit-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills card area */
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__card-text {
  font-size: 0.95em;
}

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

.page-login__security-item {
  text-align: left;
}

.page-login__item-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 35px;
}

.page-login__item-title::before {
  content: '✔';
  color: #ffffff;
  font-size: 1.2em;
  position: absolute;
  left: 0;
  top: 0;
}

.page-login__item-text {
  font-size: 1em;
  line-height: 1.7;
}

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

.page-login__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-login__game-card .page-login__card-title {
  padding: 20px 20px 10px;
  color: #26A9E0;
}

.page-login__game-card .page-login__card-text {
  padding: 0 20px 20px;
  color: #555555;
  flex-grow: 1;
}

.page-login__btn-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-login__btn-link:hover {
  background-color: #1e87c2;
}

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

.page-login__step-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-login__step-icon {
  width: 100%; /* Ensure image fills card area */
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-login__cta-register .page-login__cta-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #333333;
}

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

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

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #e8e8e8;
  border-bottom: 1px solid #d0d0d0;
}

.page-login__faq-item summary {
  list-style: none;
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

.page-login__faq-answer ul {
  margin-top: 10px;
  padding-left: 20px;
}

.page-login__faq-answer li {
  margin-bottom: 5px;
}

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-login__cta-content {
  max-width: 900px;
}

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