/* Base styles for page-login */
.page-login {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #F4F7FB; /* Body background from shared.css */
}

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

.page-login__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-login__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #1F2D3D;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-login__description {
  font-size: 18px;
  line-height: 1.6;
  color: #333333;
  text-align: center;
  margin-bottom: 30px;
}

/* Hero Section */
.page-login__hero-section {
  padding: 30px 0 60px;
  background-color: #F4F7FB;
  position: relative;
  overflow: hidden;
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 450px;
  text-align: center;
  box-sizing: border-box;
}

.page-login__main-title {
  font-weight: bold;
  color: #1F2D3D;
  margin-bottom: 20px;
  line-height: 1.2;
  text-align: center;
  font-size: clamp(24px, 3.5vw, 36px);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1F2D3D;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__form-input:focus {
  border-color: #2F6BFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: #333333;
}

.page-login__forgot-password {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-login__submit-button a {
  color: #ffffff;
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-login__register-prompt {
  margin-top: 25px;
  font-size: 15px;
  color: #333333;
}

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

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

/* Why Cmm88 Section */
.page-login__why-cmm88 {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-login__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-login__content-grid--reverse {
  direction: rtl;
}

.page-login__content-grid--reverse > * {
  direction: ltr;
}

.page-login__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 16px;
  color: #333333;
}

.page-login__image-block {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-login__feature-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

/* Seamless Experience Section */
.page-login__seamless-experience {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-login__device-showcase {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-login__device-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.page-login__app-download {
  flex: 1;
  text-align: left;
}

.page-login__app-download .page-login__sub-title {
  margin-top: 0;
  font-size: 28px;
}

.page-login__app-download p {
  line-height: 1.7;
  font-size: 16px;
  color: #333333;
  margin-bottom: 25px;
}

.page-login__cta-button--download {
  padding: 15px 30px;
  font-size: 18px;
}

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

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f5f5;
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  line-height: 1.7;
  color: #333333;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 10px; /* Adjust padding for smaller screens */
  }

  .page-login__sub-title {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-login__description {
    font-size: 16px;
    margin-bottom: 25px;
    padding: 0 10px;
  }

  /* Hero Section */
  .page-login__hero-section {
    padding: 20px 0 40px;
  }

  .page-login__hero-section .page-login__container {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__hero-image-wrapper {
    max-width: 100%;
  }

  .page-login__hero-content {
    padding: 30px 20px;
    max-width: 100%;
  }

  .page-login__main-title {
    font-size: clamp(20px, 5vw, 30px); /* Adjusted for mobile */
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__submit-button {
    max-width: 100% !important;
    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__register-prompt {
    font-size: 14px;
  }

  /* Why Cmm88 Section */
  .page-login__why-cmm88 {
    padding: 40px 0;
  }

  .page-login__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }

  .page-login__content-grid--reverse {
    direction: ltr; /* Reset direction for mobile stacking */
  }

  .page-login__text-block p {
    font-size: 15px;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  /* Seamless Experience Section */
  .page-login__seamless-experience {
    padding: 40px 0;
  }

  .page-login__device-showcase {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  .page-login__device-image {
    max-width: 100%;
  }

  .page-login__app-download {
    text-align: center;
  }

  .page-login__app-download .page-login__sub-title {
    font-size: 24px;
  }

  .page-login__app-download p {
    font-size: 15px;
  }

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

  /* FAQ Section */
  .page-login__faq-section {
    padding: 40px 0;
  }

  details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
  .page-login__faq-qtext { font-size: 15px; }
  details.page-login__faq-item .page-login__faq-answer { padding: 0 15px 15px; }

  /* General image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Ensure all content containers have proper mobile padding */
  .page-login__hero-section,
  .page-login__why-cmm88,
  .page-login__seamless-experience,
  .page-login__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Padding for the first section to avoid fixed header overlap */
/* This assumes shared.css sets body padding-top. If not, this would be higher. */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding if body handles header offset */
}

/* Mobile-specific button and container padding */
@media (max-width: 768px) {
  .page-login__submit-button, 
  .page-login__cta-button, 
  .page-login__cta-button--download {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-login__hero-content, .page-login__app-download {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}