/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
  font-family: Arial, sans-serif;
  color: #333333; /* Default dark text color for light body background */
  background: var(--secondary-color, #FFFFFF); /* Body background is light, so default text is dark */
  line-height: 1.6;
}

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

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

.page-login__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-login__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-login__subsection-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__text-center {
  text-align: center;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

.page-login__btn-secondary {
  background: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background: #e0f2f7;
  color: #1e87b7;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Ensure container takes full width */
  box-sizing: border-box;
  overflow: hidden; /* Hide overflow */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #26A9E0; /* Fallback background for hero */
}

.page-login__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Cover container while maintaining aspect ratio */
  display: block;
}

.page-login__hero-content {
  position: relative;
  z-index: 1; /* Ensure content is above image but not overlaying it */
  padding: 40px 20px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__main-title {
  font-size: clamp(32px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-login__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Login Form */
.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
  color: #333333;
}

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

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

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

.page-login__form-input::placeholder {
  color: #999999;
}

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-login__checkbox-container .page-login__checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-label {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: #eee;
  border-radius: 3px;
}

.page-login__checkbox-container .page-login__checkbox-input:checked ~ .page-login__checkbox-label {
  background-color: #26A9E0;
}

.page-login__checkbox-label:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.page-login__checkbox-container .page-login__checkbox-input:checked ~ .page-login__checkbox-label:after {
  display: block;
}

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

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

.page-login__login-button {
  width: 100%;
  padding: 14px;
  font-size: 18px;
}

.page-login__register-text {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  color: #555555;
}

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

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

/* Why Login Section */
.page-login__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-login__content-wrapper--reversed {
  flex-direction: row-reverse;
}

.page-login__text-block {
  flex: 1;
}

.page-login__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure it's a block element */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-login__feature-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  font-size: 16px;
}

.page-login__feature-list li::before {
  content: '✔';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Guide Section (Dark background) */
.page-login__guide-section {
  background: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
}

.page-login__guide-section .page-login__section-title,
.page-login__guide-section .page-login__section-description,
.page-login__guide-section .page-login__subsection-title {
  color: #FFFFFF;
}

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

.page-login__step-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #26A9E0;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-login__step-card p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-login__final-note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  font-size: 15px;
  color: #f0f0f0;
}

/* Security Section (Light background) */
.page-login__light-bg {
  background: #f9f9f9;
  color: #333333;
}

.page-login__security-tips {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__security-tips li {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

.page-login__tip-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

/* Promotions Section */
.page-login__promotions-section {
  background: #FFFFFF;
}

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

.page-login__promo-card {
  background: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.page-login__promo-card img {
  width: 100%;
  height: 220px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-login__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: #26A9E0;
}

.page-login__promo-text {
  font-size: 15px;
  margin: 0 15px 20px;
  color: #555555;
}

.page-login__promo-button {
  margin-bottom: 20px;
}

.page-login__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.page-login__cta-bottom p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333333;
}

/* FAQ Section */
details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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: #333333;
}
.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;
  color: #555555;
}
.page-login__faq-answer p {
  margin-bottom: 10px;
}
.page-login__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}
.page-login__text-link:hover {
  text-decoration: underline;
}

/* Conclusion Section */
.page-login__conclusion-section {
  background: #26A9E0;
  color: #FFFFFF;
  padding: 80px 0;
}

.page-login__conclusion-section .page-login__section-title,
.page-login__conclusion-section .page-login__section-description {
  color: #FFFFFF;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px, for larger tablets) */
@media (max-width: 1024px) {
  .page-login__container {
    padding: 0 15px;
  }

  .page-login__section-title {
    font-size: 32px;
  }

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