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

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

.page-login__section-title {
  font-weight: 700;
  text-align: center;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-size: clamp(1.8em, 2.5vw, 2.5em); /* Responsive font size */
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #555555;
}

.page-login__card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-login__link {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

.page-login__link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background-color: #F5F7FA;
}

.page-login__hero-content {
  text-align: center;
  max-width: 800px;
  margin-bottom: 40px;
  z-index: 2;
}

.page-login__main-title {
  font-weight: 800;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size */
}

.page-login__hero-description {
  font-size: 1.2em;
  color: #555555;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.page-login__image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
  text-align: center;
}

.page-login__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-login__login-form-container {
  width: 100%;
  max-width: 450px;
  padding: 40px;
  box-sizing: border-box;
  z-index: 3;
}

.page-login__form-title {
  font-size: 2em;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
}

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

.page-login__form-label {
  display: block;
  font-size: 0.95em;
  color: #333333;
  margin-bottom: 8px;
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  font-size: 1em;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: #FF5A4F;
  box-shadow: 0 0 0 3px rgba(255, 90, 79, 0.2);
  outline: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #E53935;
}

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

.page-login__forgot-password-link {
  color: #E53935;
  text-decoration: none;
  font-weight: 500;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 14px 25px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
  color: #ffffff;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95em;
  color: #555555;
}

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

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-login__benefit-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 200px; /* Min size for image generation */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__benefit-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
}

.page-login__benefit-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

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

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

.page-login__step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__step-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
}

.page-login__step-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-login__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Security Section */
.page-login__security-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-login__security-item {
  padding: 25px;
  text-align: center;
}

.page-login__security-subtitle {
  font-size: 1.3em;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
}

.page-login__security-text {
  font-size: 0.95em;
  color: #555555;
  line-height: 1.6;
}

.page-login__security-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background-color: #FFFFFF;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: #FF5A4F; /* Accent color for question */
  color: #ffffff; /* White text for accent background */
  font-weight: 600;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none; /* For details/summary */
}

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

.page-login__faq-question:hover {
  background-color: #E53935;
}

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #E53935;
  border-bottom: 1px solid #E0E0E0;
}

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 0.95em;
  color: #333333;
  line-height: 1.6;
  background-color: #ffffff;
}

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

.page-login__faq-link {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

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

/* CTA Section */
.page-login__cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #FF5A4F 0%, #E53935 100%); /* Brand color gradient */
  color: #ffffff;
  text-align: center;
}

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

.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container responsiveness */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}