/* style/login.css */

/* Custom properties for colors */
:root {
  --primary-color: #CC0000; /* Red */
  --secondary-color: #003366; /* Dark Blue */
  --accent-color: #FFD700; /* Gold */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #003366; /* Using secondary color for dark background sections */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  overflow: hidden; /* To prevent image overflow if not handled by img styles */
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-login__hero-image {
  width: 100%;
  height: auto; /* Ensures image aspect ratio is maintained */
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-login__main-title {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-login__form {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  margin: 20px auto 0;
  text-align: left;
}

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

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

.page-login__input {
  width: calc(100% - 20px); /* Account for padding */
  padding: 12px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: #fff;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%; /* Ensure button fills form width */
  box-sizing: border-box; /* Include padding/border in width */
}

.page-login__cta-button:hover {
  background: #e63946; /* Slightly darker red */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__links {
  margin-top: 20px;
  text-align: center;
}

.page-login__forgot-password,
.page-login__register-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.95em;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.page-login__section-title {
  font-size: 2.2em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-dark);
}

/* Info Section */
.page-login__info-section {
  background-color: var(--bg-light); /* Light background for contrast */
  color: var(--text-dark);
  padding: 60px 0;
}

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

.page-login__info-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0 0.3s ease;
  min-height: 300px; /* Ensure cards have a minimum height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__info-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 250px; /* Limit max width of icon within card */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

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

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

/* Mobile App Section */
.page-login__mobile-app-section {
  background-color: var(--bg-dark); /* Dark background */
  color: var(--text-light);
  padding: 60px 0;
}

.page-login__mobile-app-section .page-login__section-title {
  color: var(--text-light);
}

.page-login__mobile-app-section .page-login__section-description {
  color: rgba(255, 255, 255, 0.9);
}

.page-login__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__app-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-login__app-subtitle {
  font-size: 1.8em;
  color: var(--accent-color);
  margin-bottom: 20px;
}

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

.page-login__app-list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 15px;
  border-left: 5px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1.05em;
  color: var(--text-light);
}

.page-login__app-list-item-title {
  color: var(--accent-color); /* Gold color for strong text */
}

.page-login__app-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: center;
}

.page-login__app-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: contain;
}

.page-login__app-download-button {
  background: var(--accent-color);
  color: var(--secondary-color);
  width: auto; /* Override 100% width from general cta-button */
  padding: 15px 30px;
  font-size: 1.1em;
  margin-top: 0;
}

.page-login__app-download-button:hover {
  background: #e0b800; /* Slightly darker gold */
  color: var(--secondary-color);
}


/* Troubleshooting Section */
.page-login__troubleshooting-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0;
}

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

.page-login__step-item {
  background: #ffffff;
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  transition: transform 0.3s ease;
}

.page-login__step-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-login__step-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-login__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-login__text-link:hover {
  color: var(--secondary-color);
}

.page-login__cta-bottom {
  text-align: center;
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.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;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

.page-login__btn-primary:hover {
  background: #e63946;
  border-color: #e63946;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-login__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-login__faq-section {
  background-color: var(--bg-dark); /* Dark background */
  color: var(--text-light);
  padding: 60px 0;
}

.page-login__faq-section .page-login__section-title {
  color: var(--text-light);
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark); /* Ensure question text is dark on light background */
}

.page-login__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-login__faq-question:active {
  background: #eeeeee;
}

.page-login__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--secondary-color); /* Use accent color for question titles */
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Use primary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: var(--secondary-color); /* Change color when active */
  transform: rotate(45deg); /* Example: rotate for 'x' effect */
}

.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 15px;
  opacity: 0;
  background: #f9f9f9; /* Light background for answer text */
  color: var(--text-dark); /* Dark text for answer */
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-login__faq-answer p {
  margin: 0;
  padding: 0;
  font-size: 0.95em;
  color: var(--text-dark); /* Ensure answer text is dark */
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  background-color: var(--bg-light); /* Light background */
  color: var(--text-dark);
  padding: 60px 0;
  text-align: center;
}

.page-login__responsible-gaming-section .page-login__btn-primary {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__info-grid,
  .page-login__steps {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-image {
    margin-bottom: 20px;
    border-radius: 4px;
  }

  .page-login__hero-content {
    padding: 15px;
  }

  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__form {
    padding: 20px;
  }
}