.page-login {
  background-color: var(--background-color, #08160F); /* Fallback for body background if not set in shared */
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce image on top, content below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden; /* Ensure no overflow */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-login__hero-content {
  padding-top: 40px;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
}

.page-login__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  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;
}

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

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E); /* Gold text for secondary button */
  border: 2px solid var(--border, #2E7A4E);
}

.page-login__btn-secondary:hover {
  background-color: var(--deep-green, #0A4B2C);
  color: #ffffff;
  border-color: var(--glow, #57E38D);
}

/* General Section Styling */
.page-login__form-section,
.page-login__benefits-section,
.page-login__how-to-login-section,
.page-login__security-section,
.page-login__faq-section,
.page-login__download-cta {
  padding: 80px 0;
  text-align: center;
}

.page-login__dark-section {
  background-color: var(--background, #08160F); /* Main background color */
  color: var(--text-main, #F2FFF6);
}

.page-login__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
}

.page-login__section-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Login Form Section */
.page-login__login-card {
  background-color: var(--card-bg, #11271B); /* Card background */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 40px auto 0 auto;
  text-align: left;
  border: 1px solid var(--border, #2E7A4E);
}

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

.page-login__form-label {
  display: block;
  font-size: 1em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 8px;
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 6px;
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: var(--text-secondary, #A7D9B8);
  opacity: 0.7;
}

.page-login__form-input:focus {
  border-color: var(--glow, #57E38D);
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.2);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border, #2E7A4E);
  border-radius: 4px;
  background-color: var(--deep-green, #0A4B2C);
  cursor: pointer;
  position: relative;
  top: 1px;
}

.page-login__checkbox:checked {
  background-color: var(--main-color, #11A84E);
  border-color: var(--main-color, #11A84E);
}

.page-login__checkbox:checked::before {
  content: '✔';
  display: block;
  color: #ffffff;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.page-login__checkbox-label {
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95em;
  cursor: pointer;
}

.page-login__forgot-password {
  color: var(--gold, #F2C14E);
  text-decoration: none;
  font-size: 0.95em;
}

.page-login__forgot-password:hover {
  text-decoration: underline;
  color: var(--glow, #57E38D);
}

.page-login__login-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
}

.page-login__no-account-text {
  text-align: center;
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95em;
}

.page-login__register-link {
  color: var(--gold, #F2C14E);
  text-decoration: none;
  font-weight: 600;
}

.page-login__register-link:hover {
  text-decoration: underline;
  color: var(--glow, #57E38D);
}

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

.page-login__benefit-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border, #2E7A4E);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-icon {
  width: 100%; /* Ensure image takes full width of its container */
  max-width: 250px; /* Max width for consistency */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.4em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__benefit-description {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

/* How-to Login Section */
.page-login__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.page-login__step-item {
  text-align: left;
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider, #1E3A2A);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-login__step-number {
  background-color: var(--main-color, #11A84E);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 1.3em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-login__step-description {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

.page-login__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-top: auto; /* Push image to bottom if content above is short */
}

/* Security Section */
.page-login__security-section {
  text-align: center;
}

.page-login__security-intro {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-login__security-item {
  background-color: var(--card-bg, #11271B);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--text-main, #F2FFF6);
  font-size: 1em;
  line-height: 1.5;
  border: 1px solid var(--divider, #1E3A2A);
}

.page-login__security-item strong {
  color: var(--gold, #F2C14E);
}

.page-login__security-conclusion {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-cta {
  display: inline-block;
  margin-top: 20px;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-login__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C); /* Slightly darker on hover */
  color: var(--gold, #F2C14E);
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold, #F2C14E);
  transition: transform 0.3s ease;
}