/* style/login.css */

/* Base Styles */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-login__section-title {
  font-size: 2.5rem;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-login__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast */
  color: #ffffff;
  padding: 80px 0;
}

.page-login__light-bg {
  background-color: #2a2a2a; /* Another dark shade for sections */
  color: #ffffff;
  padding: 80px 0;
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background: url('[GALLERY:bg:1920x1080:tha_bet,login_background,abstract_pattern]') no-repeat center center/cover;
  position: relative;
  padding: 100px 0;
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

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

.page-login__hero-content {
  flex: 1;
  text-align: left;
}

.page-login__hero-title {
  font-size: 3.5rem;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__hero-description {
  font-size: 1.25rem;
  color: #f0f0f0;
  margin-bottom: 40px;
  line-height: 1.6;
}

.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.5);
  object-fit: cover;
}

/* Login Card */
.page-login__login-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #FFD700;
}

.page-login__login-card-title {
  font-size: 1.8rem;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
}

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

.page-login__form-label {
  display: block;
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 8px;
}

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

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

.page-login__form-input:focus {
  border-color: #FFD700;
  outline: none;
  box-shadow: 0 0 0 3px 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.95rem;
}

.page-login__remember-me {
  color: #f0f0f0;
}

.page-login__remember-me input[type="checkbox"] {
  margin-right: 8px;
  accent-color: #FFD700;
}

.page-login__forgot-password {
  color: #FFD700;
  text-decoration: none;
}

.page-login__forgot-password:hover {
  text-decoration: underline;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #FFD700;
  color: #1a1a1a;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.page-login__register-prompt {
  text-align: center;
  color: #f0f0f0;
  margin-top: 25px;
  font-size: 1rem;
}

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

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

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 215, 0, 0.1);
}

.page-login__benefit-icon {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-text {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Troubleshooting Section */
.page-login__troubleshooting-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.page-login__guide-block {
  background-color: rgba(139, 0, 0, 0.2);
  padding: 35px;
  border-radius: 10px;
  border: 1px solid #8B0000;
}

.page-login__guide-title {
  font-size: 1.8rem;
  color: #FFD700;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-login__guide-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__guide-list li {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 1rem;
}

.page-login__guide-list li strong {
  color: #FFD700;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #FFD700;
  font-size: 1rem;
  font-weight: bold;
  border: 2px solid #FFD700;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #1a1a1a;
}

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

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(139, 0, 0, 0.3);
}

.page-login__security-icon {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__security-title {
  font-size: 1.6rem;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__security-text {
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-login__security-text a {
  color: #FFD700;
  text-decoration: none;
}

.page-login__security-text a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 50px;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: rgba(255, 215, 0, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  font-size: 1rem;
  line-height: 1.6;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px 25px;
}

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

.page-login__cta-title {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__cta-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 3rem;
  }

  .page-login__hero-description {
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }

  .page-login__hero-content {
    text-align: center;
  }

  .page-login__hero-title {
    font-size: 2.5rem;
  }

  .page-login__hero-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-login__hero-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-login__login-card {
    max-width: 100%;
    padding: 30px 20px;
  }

  .page-login__section-title {
    font-size: 2rem;
  }

  .page-login__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-login__benefits-grid, 
  .page-login__troubleshooting-content, 
  .page-login__security-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-login__guide-block {
    padding: 25px 20px;
  }

  .page-login__guide-title {
    font-size: 1.5rem;
  }

  .page-login__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-login__faq-answer {
    padding: 15px 20px;
  }

  .page-login__cta-title {
    font-size: 2rem;
  }

  .page-login__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image, video, button responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section .page-login__container,
  .page-login__benefits-grid,
  .page-login__troubleshooting-content,
  .page-login__security-grid,
  .page-login__faq-list,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-login__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}