/* style/login.css */

/* --- General Page Styles --- */
.page-login {
  color: #ffffff; /* Body background is #000000 (dark), so use light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #000000; /* Ensure main container matches body background */
}

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

.page-login__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem); /* Responsive font size for h2 */
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-login__text-block {
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: justify;
}

.page-login__text-block p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
  box-sizing: border-box;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
}

.page-login__hero-content {
  position: relative; /* Not absolute, to flow below image */
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-login__main-title {
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Use clamp for h1 */
}

.page-login__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__cta-buttons--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-login__btn-primary,
.page-login__btn-submit {
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-login__btn-primary:hover,
.page-login__btn-submit:hover {
  background-color: #d16b06;
  border-color: #d16b06;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Brand secondary color */
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Login Form Section --- */
.page-login__form-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for form */
  padding: 60px 0;
  margin-bottom: 40px;
  box-sizing: border-box;
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.7); /* Darker background for form itself */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #ffffff;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

.page-login__checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #f0f0f0;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #26A9E0; /* Checkbox color */
}

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

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

.page-login__btn-submit {
  width: 100%;
  font-size: 1.1rem;
  padding: 15px 20px;
}

.page-login__no-account-text {
  text-align: center;
  margin-top: 30px;
  color: #f0f0f0;
}

.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

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

/* --- Benefits Section --- */
.page-login__benefits-section {
  padding: 80px 0;
  box-sizing: border-box;
}

.page-login__dark-section {
  background-color: #26A9E0; /* Brand primary color for dark section */
  color: #ffffff;
}

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

.page-login__benefit-card {
  background-color: rgba(0, 0, 0, 0.2); /* Dark overlay on brand color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  max-width: 200px; /* Limit icon size */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px; /* Soften edges */
  object-fit: cover;
}

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

.page-login__benefit-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* --- Why Choose Us Section --- */
.page-login__why-choose-us {
  padding: 80px 0;
  background-color: #000000; /* Match body background */
  box-sizing: border-box;
}

/* --- Security Section --- */
.page-login__security-section {
  padding: 80px 0;
  box-sizing: border-box;
}

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

.page-login__security-item {
  background-color: rgba(0, 0, 0, 0.2); /* Dark overlay on brand color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__security-icon {
  width: 100%;
  height: auto;
  max-width: 150px; /* Smaller icons for security features */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__security-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__security-description {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* --- FAQ Section --- */
.page-login__faq-section {
  padding: 80px 0;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ */
  box-sizing: border-box;
}

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

.page-login__faq-item {
  background-color: rgba(0, 0, 0, 0.7); /* Darker background for FAQ item */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-login__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.8);
  transition: background-color 0.3s ease;
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-login__faq-item summary:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-login__faq-qtext {
  flex-grow: 1;
  margin-right: 10px;
}

.page-login__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-login__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 0.95rem;
  color: #f0f0f0;
  line-height: 1.7;
}

/* --- Bottom CTA Section --- */
.page-login__cta-bottom {
  padding: 80px 0;
  text-align: center;
  box-sizing: border-box;
}

.page-login__cta-bottom-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-login__cta-bottom p {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .page-login__container {
    padding: 0 15px; /* Mobile padding */
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust h1 for mobile */
  }

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

  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons on mobile */
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-submit,
  .page-login a[class*="button"],
  .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;
    padding-left: 15px; /* Add padding to button content */
    padding-right: 15px;
  }

  .page-login__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__why-choose-us,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-bottom {
    padding: 40px 0; /* Reduce section padding on mobile */
  }

  /* Images responsive */
  .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__form-section,
  .page-login__benefits-section,
  .page-login__why-choose-us,
  .page-login__security-section,
  .page-login__faq-section,
  .page-login__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific image containers */
  .page-login__benefit-icon,
  .page-login__security-icon {
    max-width: 150px !important; /* Maintain reasonable icon size */
  }

  .page-login__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }
  .page-login__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-login__login-form {
    padding: 30px 20px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}