:root {
  --page-login-primary-color: #FF8C1A;
  --page-login-secondary-color: #FFA53A;
  --page-login-card-bg: #17191F;
  --page-login-body-bg: #0D0E12;
  --page-login-text-main: #FFF3E6;
  --page-login-border-color: #A84F0C;
  --page-login-glow-color: #FFB04D;
  --page-login-deep-orange: #D96800;
  --page-login-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

/* Base styles for the login page content */
.page-login {
  max-width: 100%;
  overflow-x: hidden;
  color: var(--page-login-text-main); /* Light text for dark body background */
  background-color: var(--page-login-body-bg); /* Explicitly set body-like background for main content */
}

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

.page-login__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--page-login-text-main);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--page-login-text-main);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: var(--page-login-body-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%; /* Ensure container fills width */
  width: 100%; /* Explicitly set width to 100% */
}

.page-login__hero-image {
  margin-bottom: 30px;
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 140, 26, 0.4); /* Glow effect */
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default desktop */
}

.page-login__main-title {
  font-size: clamp(36px, 5vw, 48px);
  color: var(--page-login-text-main);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--page-login-text-main);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container fills width */
  max-width: 100%; /* Ensure container fills width */
  box-sizing: border-box;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit,
.page-login a[class*="button"],
.page-login a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  min-width: 180px; /* Minimum width for buttons */
}

.page-login__btn-primary,
.page-login__btn-submit {
  background: var(--page-login-button-gradient);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-login__btn-primary:hover,
.page-login__btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
}

.page-login__btn-secondary {
  background: transparent;
  color: var(--page-login-secondary-color);
  border: 2px solid var(--page-login-secondary-color);
}

.page-login__btn-secondary:hover {
  background: var(--page-login-secondary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 165, 58, 0.3);
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for the form section */
  color: #333333; /* Dark text for light background */
}

.page-login__form-section .page-login__section-title {
  color: #333333;
}

.page-login__login-card {
  background-color: var(--page-login-card-bg); /* Dark card background */
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: var(--page-login-text-main); /* Light text for dark card background */
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

.page-login__form-label {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--page-login-text-main);
}

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid var(--page-login-border-color);
  border-radius: 6px;
  font-size: 16px;
  background-color: #2a2c34; /* Slightly lighter dark input background */
  color: var(--page-login-text-main);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: var(--page-login-secondary-color);
  box-shadow: 0 0 0 3px rgba(255, 165, 58, 0.3);
}

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--page-login-primary-color); /* Style checkbox with brand color */
}

.page-login__checkbox-label {
  color: var(--page-login-text-main);
}

.page-login__forgot-password {
  color: var(--page-login-secondary-color);
  text-decoration: none;
}

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

.page-login__btn-submit {
  width: 100%;
  padding: 15px 20px;
  font-size: 20px;
  margin-top: 10px;
}

.page-login__no-account {
  text-align: center;
  margin-top: 20px;
  font-size: 15px;
  color: var(--page-login-text-main);
}

.page-login__register-link {
  color: var(--page-login-primary-color);
  text-decoration: none;
  font-weight: 600;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: var(--page-login-body-bg);
}

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

.page-login__benefit-card {
  background-color: var(--page-login-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-login-text-main);
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 140, 26, 0.3);
}

.page-login__benefit-icon {
  width: 100%; /* Ensure large image for card */
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--page-login-primary-color);
}

.page-login__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--page-login-text-main);
}

/* Guide Section */
.page-login__guide-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-login__guide-section .page-login__section-title {
  color: #333333;
}

.page-login__article-body {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 17px;
}

.page-login__article-body h3 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--page-login-primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-login__article-body p {
  margin-bottom: 20px;
  color: #333333;
}

.page-login__guide-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  object-fit: cover;
}

.page-login__guide-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-login__guide-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-login__guide-list strong {
  color: var(--page-login-primary-color);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--page-login-body-bg);
}

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-login-border-color);
  overflow: hidden;
  background: var(--page-login-card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--page-login-text-main);
  font-weight: 600;
}
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: rgba(255, 140, 26, 0.1); /* Slight hover effect with brand color */
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-login-text-main);
}
.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--page-login-primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}