:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --border-color-rgb: 46, 122, 78;
}

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--background-color);
    padding-top: 10px; /* Small top padding, rely on body for header offset */
}

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

.page-login__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__submit-button,
.page-login a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary,
.page-login__submit-button {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover,
.page-login__submit-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-login__btn-secondary:hover {
    background: var(--border-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image above text in DOM */
    align-items: center;
    background-color: var(--background-color);
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-login__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 40px 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

.page-login__hero-title {
    font-size: 52px;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-login__hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-login__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Login Form Section */
.page-login__form-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-login__login-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    margin: 0 auto 40px;
    border: 1px solid var(--border-color);
}

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

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

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

.page-login__form-input {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
    border-color: var(--glow-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 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;
    gap: 8px;
}

.page-login__checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--glow-color);
}

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

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

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

.page-login__no-account-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 25px;
    font-size: 16px;
}

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

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

.page-login__info-block {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    margin: 60px auto 0;
    border: 1px solid var(--border-color);
}

.page-login__info-title {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 15px;
    text-align: center;
}

.page-login__info-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: justify;
}
.page-login__info-text:last-child {
    margin-bottom: 0;
}

/* Why Choose Section */
.page-login__why-choose-section {
    padding: 80px 0;
    background-color: var(--deep-green);
}

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

.page-login__feature-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px;
}

.page-login__feature-title {
    font-size: 22px;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__feature-text {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: justify;
    margin-bottom: 10px;
}
.page-login__feature-text:last-child {
    margin-bottom: 0;
}

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

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 15px 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(--text-main);
}
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(var(--border-color-rgb), 0.3);
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-login__faq-item[open] .page-login__faq-question {
    background: rgba(var(--border-color-rgb), 0.2);
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 25px 25px;
  background: var(--card-bg);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
  font-size: 15px;
}