/* style/login.css */

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Base styles for the page-login scope */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Ensure light text on dark body background */
  background-color: var(--background-color); /* Matches body background for consistency */
}

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

.page-login__section {
  padding: 60px 0;
  text-align: center;
}

.page-login__section-title {
  font-size: 2.8em;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
  background-color: var(--deep-green);
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-login__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 100%;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-login__description {
  font-size: clamp(1em, 2vw, 1.2em);
  color: var(--text-secondary);
  margin-bottom: 30px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-login__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text on green gradient */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--glow-color); /* Gold text on transparent */
  border: 2px solid var(--glow-color);
}

.page-login__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Why Choose Us Section */
.page-login__why-choose-us {
  background-color: var(--deep-green);
  padding: 80px 0;
}

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

.page-login__feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 25px rgba(87, 227, 141, 0.4);
}

.page-login__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__feature-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__feature-text {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* Login Guide Section */
.page-login__login-guide-section {
  background-color: var(--background-color);
  padding: 80px 0;
}

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

.page-login__step-card {
  background-color: var(--card-bg);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold-color);
  background: var(--deep-green);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 2px solid var(--gold-color);
}

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

.page-login__step-text {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-login__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 20px;
}

.page-login__cta-bottom {
  margin-top: 60px;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  background-color: var(--deep-green);
  padding: 80px 0;
}

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

.page-login__troubleshooting-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  text-align: left;
}

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

.page-login__troubleshooting-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-login__btn-text-link {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__btn-text-link:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  background-color: var(--background-color);
  padding: 80px 0;
}

.page-login__responsible-gaming-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-login__responsible-gaming-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__responsible-gaming-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 600px;
  margin: 0;
}

.page-login__responsible-gaming-list li {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-login__responsible-gaming-list li p {
  margin: 0;
  color: var(--text-main);
  font-size: 1em;
}

.page-login__responsible-gaming-list li strong {
  color: var(--glow-color);
  font-size: 1.1em;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: var(--deep-green);
  padding: 80px 0;
}

.page-login__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  text-align: left;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
  list-style: none;
  user-select: none;
}

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-question:hover {
  background-color: var(--deep-green);
  filter: brightness(1.2);
}

.page-login__faq-item[open] .page-login__faq-question {
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--gold-color);
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color);
  margin-left: 20px;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  background-color: var(--card-bg);
  border-top: none;
}

.page-login__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-login__cta-final {
  background-color: var(--background-color);
  padding: 80px 0;
}

/* Floating Buttons for Mobile */
.page-login__floating-buttons-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(17, 39, 27, 0.95); /* Card BG with transparency */
  display: flex;
  justify-content: space-around;
  padding: 10px 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border-top: 1px solid var(--border-color);
  display: none; /* Hidden by default, shown on mobile */
}

.page-login__floating-btn {
  flex: 1;
  padding: 12px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  margin: 0 5px;
}

.page-login__floating-btn--login {
  background: var(--button-gradient);
  color: #ffffff;
}

.page-login__floating-btn--login:hover {
  filter: brightness(1.1);
}

.page-login__floating-btn--register {
  background: var(--deep-green);
  color: var(--gold-color);
  border: 1px solid var(--gold-color);
}

.page-login__floating-btn--register:hover {
  background: rgba(242, 193, 78, 0.1);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__section-title {
    font-size: 2.2em;
  }

  .page-login__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-login__description {
    font-size: clamp(0.9em, 1.8vw, 1.1em);
  }

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

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

  .page-login__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__section {
    padding: 40px 0;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-login__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles header-offset */
  }

  .page-login__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__hero-content {
    position: static;
    transform: none;
    padding: 20px;
    margin-top: -100px; /* Pull content up over image a bit for mobile */
    background-color: rgba(8, 22, 15, 0.8); /* Dark background for text readability */
    border-radius: 12px;
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
  }

  .page-login__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

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

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

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__features-grid,
  .page-login__steps-grid,
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }

  .page-login__feature-card,
  .page-login__step-card,
  .page-login__troubleshooting-card {
    padding: 25px;
  }

  .page-login__feature-icon,
  .page-login__step-image,
  .page-login__responsible-gaming-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__responsible-gaming-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__responsible-gaming-list {
    max-width: 100%;
  }

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

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

  .page-login__floating-buttons-mobile {
    display: flex; /* Show floating buttons on mobile */
  }

  main.page-content.page-login {
    padding-bottom: 70px; /* Make space for floating buttons */
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__section-title {
    font-size: 1.6em;
  }

  .page-login__floating-btn {
    font-size: 0.9em;
    padding: 10px 8px;
  }
}