/* style/login.css */

/* Base styles for the page-login scope */
.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 (#0a0a0a) */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent background for content */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for title */
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Login Form */
.page-login__login-form {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #26A9E0;
}

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

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

.page-login__input-field {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background-color: #0a0a0a;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__input-field::placeholder {
  color: #aaaaaa;
}

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

.page-login__remember-me {
  margin-right: 8px;
}

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

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

.page-login__login-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #EA7C07; /* Custom color for Login button */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__login-btn:hover {
  background-color: #d16b06;
}

.page-login__register-text {
  margin-top: 20px;
  font-size: 1em;
  color: #ffffff;
}

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

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

/* General Section Styles */
.page-login__section {
  padding: 80px 0;
  text-align: center;
}

.page-login__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-login__section-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Why Choose SKY88 Section */
.page-login__why-sky88 .page-login__section-title {
  color: #26A9E0;
}

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(38, 169, 224, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px #26A9E0);
  border-radius: 50%; /* Make icons circular if they are */
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #EA7C07; /* Highlight with login color */
  margin-bottom: 15px;
}

.page-login__feature-text {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming .page-login__section-title {
  color: #ffffff;
}

.page-login__responsible-content {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
  margin-top: 50px;
}

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

.page-login__responsible-subtitle {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-login__responsible-text p {
  font-size: 1.05em;
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-login__responsible-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* FAQ Section */
.page-login__faq-section .page-login__section-title {
  color: #26A9E0;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: rgba(38, 169, 224, 0.1);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.2);
}

.page-login__faq-title {
  font-size: 1.25em;
  color: #ffffff;
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #EA7C07;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  line-height: 1.7;
}

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

.page-login__faq-answer p {
  margin-bottom: 10px;
}

.page-login__faq-answer ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-login__faq-answer li {
  margin-bottom: 5px;
}

/* CTA Section */
.page-login__cta-section {
  padding: 100px 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('[GALLERY:cta_register_banner:1200x675:abstract,geometric,background,sky88 casino]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.page-login__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-login__cta-section .page-login__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-login__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #26A9E0; /* Brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-login__cta-button:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

.page-login__cta-image {
  display: none; /* Hidden on desktop, only for mobile responsiveness */
}

/* Button Primary (Login button) */
.page-login__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background-color: #d16b06;
}

/* Button Secondary (CTA button) */
.page-login__btn-secondary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #1e87b6;
  border-color: #1e87b6;
}

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

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

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

  .page-login__responsible-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px !important;
  }

  /* General content area images */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers */
  .page-login__features-grid,
  .page-login__responsible-image-wrapper,
  .page-login__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login__hero-section {
    min-height: 100vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
  }

  .page-login__hero-title {
    font-size: 2.2em;
  }

  .page-login__hero-description {
    font-size: 1em;
  }

  .page-login__login-form {
    padding: 20px;
  }

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

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

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

  .page-login__features-grid {
    grid-template-columns: 1fr;
  }

  .page-login__feature-icon {
    width: 60px;
    height: 60px;
  }

  .page-login__responsible-subtitle {
    font-size: 1.5em;
  }

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

  .page-login__faq-title {
    font-size: 1.1em;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px;
  }

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

  .page-login__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 20px;
  }

  .page-login__checkbox-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__forgot-password {
    align-self: flex-end;
  }
}

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

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

/* Ensure images in content area are not smaller than 200px (excluding logo/footer icons) */
.page-login__feature-icon,
.page-login__responsible-image {
  min-width: 200px;
  min-height: 200px;
}

/* Color contrast safety for various elements */
.page-login__dark-bg {
  color: #ffffff; /* Deep background, light text */
}

.page-login__light-bg {
  color: #ffffff; /* Slightly lighter dark background, light text */
}

.page-login__login-form {
  color: #ffffff;
}

.page-login__form-label {
  color: #ffffff;
}

.page-login__input-field {
  color: #ffffff;
}

.page-login__register-text {
  color: #ffffff;
}

.page-login__feature-text,
.page-login__responsible-text p,
.page-login__faq-answer p,
.page-login__faq-answer li {
  color: #e0e0e0; /* Slightly off-white for body text for readability */
}

.page-login__btn-primary,
.page-login__btn-secondary {
  color: #ffffff;
}

.page-login__forgot-password,
.page-login__register-link,
.page-login__feature-title,
.page-login__faq-title {
  color: #26A9E0;
}

/* Overriding some colors for specific elements to match brand/contrast */
.page-login__login-btn {
  background-color: #EA7C07; /* Login button custom color */
  color: #ffffff;
}

.page-login__login-btn:hover {
  background-color: #d16b06;
}

.page-login__cta-button {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__cta-button:hover {
  background-color: #1e87b6;
}

.page-login__faq-toggle {
  color: #EA7C07;
}

.page-login__faq-item.active .page-login__faq-toggle {
  color: #ffffff;
}