/* 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 */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-background {
  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); /* Dark overlay for text readability */
  z-index: -1;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-login__main-heading {
  font-size: 3.5em;
  color: #FFFF00; /* Login/Register font color */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Login Form Wrapper */
.page-login__login-form-wrapper {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #017439;
}

.page-login__form-title {
  font-size: 2em;
  color: #FFFF00; /* Login/Register font color */
  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;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #C30808; /* Login/Register button color */
  color: #FFFF00; /* Login/Register font color */
  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;
  box-sizing: border-box;
}

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

.page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__forgot-password {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #7FFF00; /* Light green for contrast on dark background */
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #00ff00;
}

/* General Section Styling */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-login__section-title {
  font-size: 2.8em;
  color: #FFFF00; /* Adjusted for better contrast on dark bg */
  text-align: center;
  margin-bottom: 25px;
  padding-top: 60px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-login__section-description {
  font-size: 1.15em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff; /* Light text for dark background */
}

.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: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #017439;
}

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

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small but still fit */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #FFFF00; /* Adjusted for better contrast on dark background */
  margin-bottom: 15px;
}

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

/* Guide Section */
.page-login__guide-section {
  padding: 80px 0;
  background-color: #111111;
  color: #ffffff;
}

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

.page-login__step-card {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #017439;
}

.page-login__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #C30808; /* Login/Register button color for emphasis */
  margin-bottom: 15px;
}

.page-login__step-title {
  font-size: 1.8em;
  color: #FFFF00; /* Adjusted for better contrast on dark background */
  margin-bottom: 15px;
}

.page-login__step-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-login__step-image {
  width: 100%;
  max-width: 400px; /* Adjust as needed */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__forgot-password-info {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  margin-top: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #017439;
}

.page-login__sub-heading {
  font-size: 1.8em;
  color: #FFFF00; /* Login/Register font color */
  margin-bottom: 15px;
  text-align: center;
}

.page-login__text {
  font-size: 1em;
  color: #f0f0f0;
  text-align: center;
}

/* Featured Games Section */
.page-login__featured-games-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

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

.page-login__game-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid #017439;
}

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

.page-login__game-image {
  width: 100%;
  max-width: 300px; /* Adjust as needed */
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__game-title {
  font-size: 1.4em;
  color: #FFFF00; /* Adjusted for better contrast on dark background */
  margin-bottom: 10px;
}

.page-login__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-login__cta-text {
  font-size: 1.5em;
  color: #FFFF00; /* Login/Register font color */
  margin-bottom: 30px;
}

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

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

.page-login__feature-item {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #017439;
}

.page-login__feature-icon {
  width: 100%;
  max-width: 200px; /* Adjust as needed */
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #FFFF00; /* Adjusted for better contrast on dark background */
  margin-bottom: 15px;
}

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

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

.page-login__faq-list {
  margin-top: 50px;
}

.page-login__faq-item {
  background: #1a1a1a;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #017439;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00; /* Login/Register font color */
  cursor: pointer;
  background-color: #222222;
  transition: background-color 0.3s ease;
  list-style: none; /* For <details> tag */
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}
.page-login__faq-item summary::marker {
  display: none; /* Hide default marker for Firefox */
}

.page-login__faq-question:hover {
  background-color: #333333;
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #C30808; /* Login/Register button color */
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: #1a1a1a;
  border-top: 1px solid #017439;
}

.page-login__faq-answer p {
  margin-bottom: 15px;
}