/* style/login.css */

/* Base styles and variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --accent-color: #EA7C07; /* Login button specific color */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #1a1a1a; /* Assuming a dark background for some sections to ensure contrast */
  --border-color: #e0e0e0;
  --spacing-unit: 1rem;
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Default page background */
}

/* Fixed Header Spacing */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first content section */
}

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

/* Section Styling */
.page-login__hero-section,
.page-login__guide-section,
.page-login__games-preview-section,
.page-login__download-app-section {
  background-color: var(--background-dark); /* Dark background for these sections */
  color: var(--text-light);
  padding: 80px 0;
}

.page-login__benefits-section,
.page-login__security-section,
.page-login__faq-section {
  background-color: var(--background-light); /* Light background for these sections */
  color: var(--text-dark);
  padding: 80px 0;
}

/* Helper classes for color contrast */
.page-login__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-login__section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-login__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  color: inherit; /* Inherit color from parent section */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 600px;
  text-align: left;
}

.page-login__hero-section .page-login__container {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-login__hero-content {
  flex: 1;
  max-width: 50%;
}

.page-login__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-login__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-login__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Login Form */
.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--text-light);
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-login__form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.5);
}

.page-login__login-button {
  width: 100%;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background-color: var(--accent-color); /* Login button specific color */
  color: var(--text-light);
  border: none;
}

.page-login__login-button:hover {
  background-color: #d16b06; /* Slightly darker than #EA7C07 */
  transform: translateY(-2px);
}

.page-login__form-links {
  text-align: center;
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text-light);
}

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

.page-login__forgot-password:hover,
.page-login__register-link:hover,
.page-login__text-link:hover {
  color: #4dc2f0; /* Slightly lighter than #26A9E0 */
  text-decoration: underline;
}

.page-login__separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.6);
}

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

.page-login__benefit-card.page-login__card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__card-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__card-text {
  font-size: 1rem;
  color: var(--text-dark);
  flex-grow: 1; /* Allow text to take up available space */
}

.page-login__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

/* Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-login__step-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-login__step-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.page-login__troubleshooting-section {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  margin-top: 40px;
  color: var(--text-light);
}

.page-login__troubleshooting-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-light);
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__troubleshooting-list li {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.page-login__troubleshooting-list li strong {
  color: var(--primary-color);
}

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

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

.page-login__security-features {
  list-style: none;
  padding: 0;
}

.page-login__security-features li {
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-login__feature-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-login__feature-text {
  font-size: 1rem;
  color: var(--text-dark);
}

.page-login__security-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Games Preview Section */
.page-login__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-login__game-card.page-login__card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-login__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__game-card .page-login__card-title {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-login__game-card .page-login__card-link {
  color: var(--primary-color);
  text-decoration: none;
}

.page-login__game-card .page-login__card-link:hover {
  text-decoration: underline;
  color: #4dc2f0;
}

.page-login__game-card .page-login__card-text {
  color: rgba(255, 255, 255, 0.8);
  flex-grow: 1;
}

/* FAQ Section */
.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
  margin-bottom: 60px;
}

.page-login__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--primary-color);
  background-color: #f0f0f0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-question {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-login__faq-item[open] .page-login__faq-toggle {
  color: var(--text-light);
}

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

.page-login__faq-item[open] .page-login__faq-question:hover {
  background-color: #2093c9;
}

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

.page-login__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(180deg);
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--secondary-color);
  border-top: 1px solid var(--border-color);
}

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

/* Download App Section */
.page-login__download-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.page-login__app-features {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.page-login__app-features li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-login__download-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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