/* style/login.css */
/* Color Palette */
:root {
  --primary-color: #017439; /* Main green */
  --secondary-color: #FFFFFF; /* White */
  --btn-login-bg: #C30808; /* Red for login/register buttons */
  --btn-login-text: #FFFF00; /* Yellow for login/register button text */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --border-light: #e0e0e0;
}

/* Base styles for .page-login */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--bg-light); /* Default body background is white */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

/* Container for consistent width */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section titles and descriptions */
.page-login__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  background-color: var(--primary-color); /* Dark background for hero */
  color: var(--text-light); /* Light text for dark background */
}

.page-login__hero-section .page-login__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-login__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color); /* White text */
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--secondary-color); /* White text */
}

.page-login__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Login Form */
.page-login__login-form-wrapper {
  background-color: var(--bg-light); /* White background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: var(--text-dark); /* Dark text for light background */
}

.page-login__form-title {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark);
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: var(--primary-color);
}

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

.page-login__forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__btn-login {
  width: 100%;
  padding: 15px 20px;
  background-color: var(--btn-login-bg); /* Specific red for login button */
  color: var(--btn-login-text); /* Specific yellow for login button text */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-login:hover {
  background-color: #a30606; /* Slightly darker red on hover */
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: var(--text-dark);
}

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

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

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

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

.page-login__benefit-card {
  background-color: var(--secondary-color); /* White card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.page-login__benefit-card .page-login__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-card .page-login__card-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text */
}

.page-login__security-section .page-login__section-title {
  color: var(--secondary-color); /* White title */
}

.page-login__security-section .page-login__section-description {
  color: var(--secondary-color); /* White description */
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-login__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
}

.page-login__security-list {
  flex: 1;
  list-style: none;
  padding: 0;
}

.page-login__security-item {
  margin-bottom: 30px;
}

.page-login__security-item:last-child {
  margin-bottom: 0;
}

.page-login__security-item .page-login__list-title {
  font-size: 1.6em;
  color: var(--secondary-color); /* White title */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__security-item .page-login__list-text {
  font-size: 1em;
  color: var(--secondary-color); /* White text */
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

.page-login__trouble-card {
  background-color: var(--secondary-color); /* White card background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.page-login__trouble-card .page-login__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__trouble-card .page-login__card-text {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--secondary-color); /* White background */
  color: var(--primary-color); /* Green text */
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text */
}

.page-login__faq-section .page-login__section-title {
  color: var(--secondary-color); /* White title */
}

.page-login__faq-section .page-login__section-description {
  color: var(--secondary-color); /* White description */
}

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

.page-login__faq-item {
  background-color: var(--secondary-color); /* White background for FAQ item */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-light);
}

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

.page-login__faq-title {
  font-size: 1.2em;
  color: var(--primary-color);
  margin: 0;
  font-weight: bold;
}