.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0d0d0d; /* Inherited from shared.css, ensure text contrast */
  padding-top: 120px; /* Desktop: Adjust for fixed header height */
}

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

.page-login__hero-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--primary-color, #1A237E); /* Main brand color */
  color: #ffffff;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary brand color for emphasis */
  font-weight: bold;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

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

.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.3);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-input:focus {
  border-color: var(--auxiliary-color, #FFD700);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  accent-color: var(--auxiliary-color, #FFD700);
}

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

.page-login__forgot-password-link {
  color: var(--auxiliary-color, #FFD700);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  background: none; /* Button itself should not have background */
}

.page-login__submit-button .page-login__submit-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #1A237E; /* Text color for the link inside the button */
  background-color: var(--auxiliary-color, #FFD700); /* Background for the link */
  padding: 15px 0;
  border-radius: 5px;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-login__submit-button:hover .page-login__submit-link {
  background-color: #e6c200; /* Darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-login__submit-button:active .page-login__submit-link {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-login__register-prompt {
  margin-top: 30px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__register-prompt p {
  margin: 0;
}

.page-login__register-link {
  color: var(--auxiliary-color, #FFD700);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-login__section {
  padding: 80px 0;
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.5em;
  color: var(--auxiliary-color, #FFD700);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-login__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: var(--auxiliary-color, #FFD700);
  margin-bottom: 15px;
  font-weight: 700;
}

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

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

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--auxiliary-color, #FFD700);
  color: var(--primary-color, #1A237E);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-login__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: none;
  color: var(--auxiliary-color, #FFD700);
  text-decoration: none;
  border: 2px solid var(--auxiliary-color, #FFD700);
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-login__btn-secondary:hover {
  background: var(--auxiliary-color, #FFD700);
  color: var(--primary-color, #1A237E);
  transform: translateY(-2px);
}

.page-login__light-bg {
  background-color: #f9f9f9;
  color: #333333; /* Dark text for light background */
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__step-title,
.page-login__light-bg .page-login__troubleshooting-title {
  color: var(--primary-color, #1A237E);
}

.page-login__light-bg .page-login__section-intro,
.page-login__light-bg .page-login__step-description,
.page-login__light-bg .page-login__troubleshooting-list li {
  color: #555555;
}

.page-login__guide-section {
  padding: 80px 0;
}

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

.page-login__guide-step-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-login__step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color, #1A237E);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 25px auto;
}

.page-login__step-title {
  font-size: 1.5em;
  color: var(--primary-color, #1A237E);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-login__step-description {
  font-size: 1em;
  color: #555555;
}

.page-login__troubleshooting {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
  text-align: left;
}

.page-login__troubleshooting-title {
  font-size: 1.8em;
  color: var(--primary-color, #1A237E);
  margin-bottom: 25px;
  text-align: center;
}

.page-login__troubleshooting-list {
  list-style: disc inside;
  padding-left: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__troubleshooting-list li {
  margin-bottom: 10px;
  font-size: 1em;
  color: #555555;
}

.page-login__security-section {
  background-color: var(--primary-color, #1A237E);
  padding: 80px 0;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

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

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

.page-login__security-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FFD700" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-8.93"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat left center;
  background-size: 24px;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #f0f0f0;
}

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

.page-login__img-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__mobile-app-section {
  padding: 80px 0;
  background-color: var(--primary-color, #1A237E);
}

.page-login__mobile-app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-login__mobile-app-image {
  flex: 1;
  text-align: center;
}

.page-login__mobile-app-info {
  flex: 1;
  text-align: left;
}

.page-login__mobile-app-title {
  font-size: 2em;
  color: var(--auxiliary-color, #FFD700);
  margin-bottom: 25px;
}

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

.page-login__mobile-app-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23FFD700" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smartphone"><rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line></svg>') no-repeat left center;
  background-size: 24px;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-login__games-section {
  padding: 80px 0;
}

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

.page-login__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
  color: #333333;
}

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

.page-login__game-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
}

.page-login__game-card-title {
  font-size: 1.4em;
  margin: 20px 15px 10px 15px;
  color: var(--primary-color, #1A237E);
  font-weight: 700;
}

.page-login__game-card-link {
  text-decoration: none;
  color: inherit;
}

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

.page-login__game-card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px 15px;
}

.page-login__game-card .page-login__btn-secondary {
  margin-bottom: 20px;
}

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

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-login__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-login__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--auxiliary-color, #FFD700);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
  color: #f0f0f0;
}

.page-login__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.7;
}

/* Brand Section */
.page-login__brand-section {
  padding: 80px 0;
  background-color: var(--primary-color, #1A237E);
}

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

.page-login__brand-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__brand-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__brand-title {
  font-size: 1.4em;
  color: var(--auxiliary-color, #FFD700);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-login__brand-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__security-content,
  .page-login__mobile-app-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__security-text,
  .page-login__mobile-app-info {
    text-align: center;
  }
  .page-login__security-list,
  .page-login__mobile-app-list {
    padding-left: 0;
    list-style-position: inside;
  }
  .page-login__security-list li,
  .page-login__mobile-app-list li {
    background-position: center left;
    text-align: left;
    padding-left: 35px;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header height */
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-login__container {
    padding: 0 15px;
  }
  
  .page-login__hero-section {
    padding: 40px 0;
  }
  
  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  
  .page-login__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  
  .page-login__login-form {
    padding: 30px;
    max-width: 100%;
    box-sizing: border-box !important;
  }
  
  .page-login__form-input,
  .page-login__submit-button .page-login__submit-link {
    padding: 12px;
    font-size: 1em;
  }
  
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .page-login__submit-button {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-login__register-prompt {
    margin-top: 25px;
    font-size: 0.95em;
  }
  
  .page-login__section {
    padding: 60px 0;
  }
  
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  
  .page-login__section-intro {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  
  .page-login__benefits-grid,
  .page-login__guide-steps,
  .page-login__games-grid,
  .page-login__brand-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-login__benefit-item,
  .page-login__guide-step-item,
  .page-login__game-card,
  .page-login__brand-item {
    padding: 25px;
  }
  
  .page-login__benefit-icon,
  .page-login__brand-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .page-login__benefit-title,
  .page-login__step-title,
  .page-login__game-card-title,
  .page-login__brand-title {
    font-size: 1.3em;
  }
  
  .page-login__btn-primary {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-login__btn-secondary {
    width: auto !important; /* Allow secondary buttons to adjust width */
    box-sizing: border-box !important;
    padding: 8px 15px;
    font-size: 0.9em;
  }
  
  .page-login__troubleshooting-title {
    font-size: 1.5em;
  }
  
  .page-login__mobile-app-title {
    font-size: 1.8em;
  }
  
  .page-login__img-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  /* FAQ specific mobile styles */
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-question h3 {
    font-size: 1em;
  }
  .page-login__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__login-form {
    padding: 20px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 0.9em;
  }
}