/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    background: #FFFFFF; /* Explicitly set for clarity, though body is already white */
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top for fixed header */
}

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

.page-login__section-padding {
    padding: 40px 0;
}

.page-login__section-title {
    font-size: 32px;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-login__section-description {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding-bottom: 20px; /* Spacing below content */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 450px; /* Limit height for hero image */
    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;
    padding: 20px 15px;
    max-width: 800px;
    margin: 0 auto;
}

.page-login__main-title {
    font-size: clamp(36px, 4vw, 44px); /* Default for desktop, clamped for responsiveness */
    color: #017439;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 0;
}

/* Form Section */
.page-login__form-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 0 2px rgba(1, 116, 57, 0.2);
}

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

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

.page-login__checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #017439;
}

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

.page-login__forgot-password-link {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #00562e;
    text-decoration: underline;
}

.page-login__btn-submit {
    width: 100%;
    padding: 14px 20px;
    background-color: #C30808; /* Custom login color */
    color: #FFFF00; /* Custom login text color */
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%; /* Button responsiveness */
    white-space: normal; /* Button text wrap */
    word-wrap: break-word; /* Button text wrap */
}

.page-login__btn-submit:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-login__no-account-text {
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
    color: #555555;
}

.page-login__register-link {
    color: #017439;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #00562e;
    text-decoration: underline;
}

/* Benefits Section */
.page-login__dark-section {
    background-color: #017439; /* Brand main color for dark section */
    color: #ffffff; /* White text for dark background */
}

.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__section-description {
    color: #ffffff;
}

.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: #ffffff;
    color: #333333;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-login__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__benefit-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-login__benefit-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
}

/* Security Section */
.page-login__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-login__security-item {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-login__security-item-title {
    font-size: 20px;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__security-item-text {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
}

.page-login__security-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Call to Action Section */
.page-login__cta-content {
    text-align: center;
    padding: 40px 20px;
}

.page-login__cta-title {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-login__cta-description {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%; /* Button responsiveness */
    white-space: normal; /* Button text wrap */
    word-wrap: break-word; /* Button text wrap */
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom register color */
    color: #FFFF00; /* Custom register text color */
    border: 2px solid transparent;
}

.page-login__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

/* FAQ Section */
details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

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

.page-login__info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    text-align: center;
}

.page-login__info-card-title {
    font-size: 22px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-login__info-card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
}

.page-login__info-card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%; /* Link button responsiveness */
    white-space: normal; /* Link button text wrap */
    word-wrap: break-word; /* Link button text wrap */
}

.page-login__info-card-link:hover {
    background-color: #00562e;
    transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-image-wrapper {
        max-height: 250px; /* Adjust for smaller screens */
    }
    .page-login__hero-content {
        padding: 15px;
    }
    .page-login__main-title {
        font-size: clamp(28px, 8vw, 36px); /* Responsive font size for H1 */
        margin-bottom: 10px;
    }
    .page-login__hero-description {
        font-size: 16px;
    }
    .page-login__form-card {
        padding: 25px;
        margin: 0 15px;
    }
    .page-login__form-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    .page-login__form-input {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-login__btn-submit,
    .page-login__cta-button,
    .page-login__info-card-link {
        padding: 12px 15px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-login__benefits-grid,
    .page-login__security-features,
    .page-login__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-login__benefit-item,
    .page-login__security-item,
    .page-login__info-card {
        padding: 20px;
    }
    .page-login__section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    .page-login__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-login__cta-title {
        font-size: 28px;
    }
    .page-login__cta-description {
        font-size: 16px;
    }
    .page-login__cta-content {
        padding: 30px 15px;
    }
    details.page-login__faq-item summary.page-login__faq-question { padding: 15px; }
    .page-login__faq-qtext { font-size: 15px; }
    .page-login__faq-answer { padding: 0 15px 15px; }
    
    /* Image responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-login__section-padding {
        padding: 25px 0;
    }
    .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__hero-section,
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__call-to-action,
    .page-login__faq-section,
    .page-login__more-info {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Added for consistency with container */
        padding-right: 15px; /* Added for consistency with container */
    }
}