/* style/login.css */

/* Base styles for page-login */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Assuming body background is black from shared.css */
}

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

/* Hero Section - Login Form */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_background:1920x1080:login,background,abstract_tech,neon_lights]') no-repeat center center/cover;
  color: #ffffff;
  text-align: center;
}

.page-login__login-card {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  border: 1px solid #26A9E0;
}

.page-login__main-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for main title */
  text-shadow: 0 0 10px rgba(38, 169, 224, 0.7);
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

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

.page-login__input:focus {
  outline: none;
  border-color: #EA7C07; /* Login color for focus */
  box-shadow: 0 0 8px rgba(234, 124, 7, 0.5);
}

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

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

.page-login__remember-me input {
  margin-right: 8px;
  accent-color: #26A9E0;
}

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

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

.page-login__btn-submit {
  width: 100%;
  padding: 15px;
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  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-sizing: border-box;
}

.page-login__btn-submit:hover {
  background-color: #d86c06;
  transform: translateY(-2px);
}

.page-login__no-account-text {
  margin-top: 25px;
  color: #f0f0f0;
  font-size: 0.95em;
}

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

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

.page-login__social-login {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__social-login p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-login__social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.page-login__social-icon {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.page-login__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.page-login__social-icon:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  color: #333333; /* Dark text for light background */
  background-color: #ffffff; /* White background */
}

.page-login__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for section titles */
}

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

.page-login__benefit-card {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-login__benefit-icon {
  width: 100%; /* Ensure full width in card */
  max-width: 200px; /* Max size for icon-like images */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__card-title {
  font-size: 1.4em;
  color: #333333;
  margin-bottom: 15px;
}

.page-login__benefit-card p {
  color: #555555;
  font-size: 0.95em;
}

/* Explore Games Section */
.page-login__explore-games-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.page-login__explore-games-section .page-login__section-title {
  color: #26A9E0;
}

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

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(38, 169, 224, 0.3);
}

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

.page-login__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-login__game-card .page-login__card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-login__game-card .page-login__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-login__game-card .page-login__card-title a:hover {
  color: #EA7C07;
}

.page-login__game-card p {
  color: #cccccc;
  padding: 0 20px 20px;
  font-size: 0.9em;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-login__btn-primary:hover {
  background-color: #d86c06;
  border-color: #d86c06;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Security Info Section */
.page-login__security-info-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-login__security-info-section .page-login__section-title {
  color: #26A9E0;
}

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

.page-login__feature-item {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-login__feature-item img {
  
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-login__feature-item h3 {
  font-size: 1.3em;
  color: #333333;
  margin-bottom: 10px;
}

.page-login__feature-item p {
  color: #555555;
  font-size: 0.95em;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.page-login__faq-section .page-login__section-title {
  color: #26A9E0;
}

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

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(38, 169, 224, 0.3);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
  font-size: 0.95em;
}

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

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar visually */
}

/* Utility classes for background/text color contrast */
.page-login__dark-bg {
  background-color: #000000; /* Or a darker shade */
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__game-card img {
    
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 60px 0;
    min-height: auto;
  }
  .page-login__login-card {
    padding: 30px 20px;
  }
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__benefits-grid,
  .page-login__game-categories,
  .page-login__security-features {
    grid-template-columns: 1fr;
  }
  .page-login__game-card img {
    
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__container,
  .page-login__login-card,
  .page-login__benefit-card,
  .page-login__game-card,
  .page-login__feature-item,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__social-icons {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .page-login__login-card {
    padding: 25px 15px;
  }
  .page-login__main-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.4em;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 10px 20px;
  }
}