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

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color, will be overridden by specific sections if needed */
    background-color: var(--background); /* Overall background from custom colors */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden;
    background-color: var(--card-bg); /* Use Card BG for hero section background */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-login__hero-content {
    max-width: 800px;
    width: 100%; /* Ensure width is 100% for flex item */
    margin: 0 auto;
    padding: 0 15px;
    color: var(--text-main);
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
    font-weight: bold;
    color: var(--gold); /* Use Gold for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-login__login-form-wrapper {
    background-color: var(--deep-green); /* Use Deep Green for form background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    width: 100%;
    margin: 30px auto 0;
    border: 1px solid var(--border);
}

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

.page-login__form-group {
    text-align: left;
}

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: #0A301E; /* Slightly lighter than deep green for input contrast */
    color: var(--text-main);
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.page-login__btn-primary {
    display: block;
    padding: 14px 25px;
    border-radius: 8px;
    background: var(--button-gradient); /* Custom button gradient */
    color: #ffffff; /* White text for contrast */
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    display: block;
    padding: 14px 25px;
    border-radius: 8px;
    background-color: transparent;
    border: 2px solid var(--glow); /* Border with Glow color */
    color: var(--glow); /* Text with Glow color */
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-login__btn-secondary:hover {
    background-color: var(--glow);
    color: var(--deep-green); /* Darker text on hover for contrast */
    transform: translateY(-2px);
}

.page-login__forgot-password {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

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

/* General Section Styling */
.page-login__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--gold);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: bold;
}

.page-login__text-block {
    font-size: 1.05em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-login__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    color: var(--text-main);
}

/* Info Section */
.page-login__info-section {
    background-color: var(--card-bg); /* Use Card BG for section background */
    padding: 60px 20px;
    text-align: center;
}

.page-login__dark-section {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-login__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-login__info-card {
    background-color: var(--deep-green); /* Use Deep Green for card background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-login__info-card:hover {
    transform: translateY(-5px);
}

.page-login__card-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block; /* Ensure images are block elements */
}

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

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-login__benefits-content {
    color: var(--text-main);
}

.page-login__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-login__list-item {
    background-color: var(--deep-green); /* Use Deep Green for list item background */
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__list-item::before {
    content: '✅'; /* Use an emoji for list item bullet */
    font-size: 1.2em;
    flex-shrink: 0;
}

/* Security Section */
.page-login__security-section {
    padding: 60px 20px;
}

.page-login__security-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.page-login__security-image {
    flex: 1 1 400px;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure images are block elements */
}

.page-login__security-text {
    flex: 1 1 400px;
    max-width: 50%;
    color: var(--text-secondary);
}

.page-login__security-subtitle {
    font-size: 1.3em;
    color: var(--gold);
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-login__security-list .page-login__list-item {
    background-color: #0A301E; /* Slightly different green for security list items */
    color: var(--text-main);
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-login__faq-list {
    margin-top: 30px;
}

.page-login__faq-item {
    background-color: var(--deep-green); /* Use Deep Green for FAQ item background */
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__faq-item summary {
    list-style: none; /* Hide default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: #0A301E; /* Slightly different green for question background */
    transition: background-color 0.3s ease;
}

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

.page-login__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    margin-left: 15px;
    color: var(--glow);
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-login__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider);
}

.page-login__faq-answer p {
    margin: 0;
}


/* CTA Section */
.page-login__cta-section {
    background-color: var(--card-bg); /* Use Card BG for section background */
    padding: 60px 20px;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--divider);
}

.page-login__cta-section .page-login__section-title {
    color: var(--gold);
}

.page-login__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%; /* Ensure container takes full width */
    box-sizing: border-box; /* Button container responsive */
    overflow: hidden; /* Button container responsive */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-login__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }

    .page-login__security-content {
        flex-direction: column;
        text-align: center;
    }

    .page-login__security-image,
    .page-login__security-text {
        max-width: 100%;
    }
    .page-login__security-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is for visual padding */
    }

    .page-login__hero-content {
        padding: 0 10px;
    }

    .page-login__main-title {
        font-size: clamp(1.5em, 7vw, 2.2em);
    }

    .page-login__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-login__login-form-wrapper {
        padding: 25px;
    }

    .page-login__form-input {
        padding: 10px 12px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-login__forgot-password {
        font-size: 0.9em;
    }

    .page-login__info-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 15px;
    }

    .page-login__info-grid {
        grid-template-columns: 1fr;
    }

    .page-login__info-card {
        padding: 25px;
    }

    .page-login__card-image {
        max-width: 200px;
    }

    .page-login__security-content {
        gap: 20px;
    }

    .page-login__security-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-login__security-text {
        max-width: 100%;
        text-align: left;
    }

    .page-login__list-item {
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }

    .page-login__faq-answer {
        padding: 12px 20px 15px;
        font-size: 0.95em;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px; /* Add padding to prevent overflow */
        padding-right: 15px; /* Add padding to prevent overflow */
    }

    /* Images responsive */
    .page-login img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-login__hero-image-wrapper,
    .page-login__info-card,
    .page-login__security-content,
    .page-login__cta-buttons,
    .page-login__login-form-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px; /* Ensure content is not flush with screen edge */
        padding-right: 15px; /* Ensure content is not flush with screen edge */
    }
    .page-login__hero-content,
    .page-login__benefits-content,
    .page-login__security-text,
    .page-login__faq-list {
        padding-left: 0;
        padding-right: 0;
    }
}