/* style/login.css */
/* Body background color: #f4f7f6 (light) */
/* Text color should be dark for main content */

/* Custom colors from prompt */
/* Button: 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: #333333; /* Dark text for light body background */
    background-color: #f4f7f6; /* Shared body background */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically */
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    min-height: 600px; /* Ensure hero section has a minimum height */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: block;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin-top: 50px; /* Push content down slightly from header */
    padding: 20px;
    background: rgba(8, 22, 15, 0.85); /* Use Deep Green with transparency for readability */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #F2FFF6; /* Text Main for hero content */
}

.page-login__main-title {
    font-size: clamp(2em, 5vw, 2.8em); /* Responsive H1 font size */
    font-weight: 700;
    color: #F2C14E; /* Gold for main title */
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-login__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #A7D9B8; /* Text Secondary */
}

/* Login Form */
.page-login__login-form-container {
    background: #08160F; /* Background color for form container */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 100%;
    margin: 20px auto 0;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-login__form-title {
    font-size: 1.8em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 25px;
    font-weight: 600;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #2E7A4E;
    border-radius: 5px;
    background-color: #11271B; /* Card BG */
    color: #F2FFF6; /* Text Main */
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: #A7D9B8; /* Text Secondary */
    opacity: 0.7;
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px; /* Spacing between items */
}

.page-login__forgot-password {
    color: #57E38D; /* Glow color */
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent breaking */
}

.page-login__forgot-password:hover {
    color: #F2C14E; /* Gold on hover */
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #ffffff;
    border: none;
    flex-grow: 1; /* Allow button to grow */
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px #57E38D; /* Glow on hover */
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 20px;
    border-top: 1px dashed #1E3A2A; /* Divider */
    padding-top: 20px;
}

.page-login__register-text {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
}

.page-login__btn-secondary {
    background: #11271B; /* Card BG */
    color: #57E38D; /* Glow color */
    border: 1px solid #2E7A4E; /* Border color */
    width: 100%; /* Full width for secondary button */
}

.page-login__btn-secondary:hover {
    background: #2E7A4E; /* Border color on hover */
    color: #F2FFF6; /* Text Main on hover */
}

/* General Content Sections */
.page-login__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-login__section-title {
    font-size: 2.2em;
    color: #11A84E; /* Main color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.page-login__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #F2C14E; /* Gold */
    border-radius: 2px;
}

.page-login__subsection-title {
    font-size: 1.6em;
    color: #22C768; /* Auxiliary color */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__text-block {
    font-size: 1em;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

.page-login__content-image {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Guide List */
.page-login__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-counter;
}

.page-login__guide-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding-left: 70px;
}

.page-login__guide-item::before {
    counter-increment: guide-counter;
    content: counter(guide-counter);
    position: absolute;
    left: 20px;
    top: 25px;
    background-color: #11A84E; /* Main color */
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: 700;
}

.page-login__guide-step-title {
    font-size: 1.4em;
    color: #11A84E; /* Main color */
    margin-bottom: 10px;
}

.page-login__guide-step-description {
    font-size: 0.95em;
    color: #333333;
}

/* Troubleshooting List */
.page-login__troubleshooting-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-login__troubleshooting-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__troubleshooting-title {
    font-size: 1.3em;
    color: #22C768; /* Auxiliary color */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__troubleshooting-description {
    font-size: 0.95em;
    color: #333333;
}

/* Security Tips List */
.page-login__security-tips-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

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

.page-login__security-tip-title {
    font-size: 1.3em;
    color: #11A84E; /* Main color */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__security-tip-description {
    font-size: 0.95em;
    color: #333333;
}

/* Benefits List */
.page-login__benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-login__benefits-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__benefits-title {
    font-size: 1.3em;
    color: #22C768; /* Auxiliary color */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__benefits-description {
    font-size: 0.95em;
    color: #333333;
}

/* FAQ Section */
.page-login__faq-list {
    max-width: 900px;
    margin: 30px auto;
}

.page-login__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: #11A84E; /* Main color */
    cursor: pointer;
    list-style: none; /* For details/summary default styling */
}

.page-login__faq-question::-webkit-details-marker {
    display: none;
}

.page-login__faq-question::marker { /* Standard way to hide marker */
    display: none;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: '−';
}

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: #333333;
    line-height: 1.7;
    text-align: justify;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__hero-content {
        padding: 15px;
    }
    .page-login__main-title {
        font-size: clamp(1.8em, 4vw, 2.5em);
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__guide-item {
        padding-left: 60px;
    }
    .page-login__guide-item::before {
        left: 15px;
        top: 20px;
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        padding: 10px 15px 40px;
        min-height: 500px;
    }
    .page-login__hero-content {
        margin-top: 20px;
        padding: 15px;
    }
    .page-login__main-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
    }
    .page-login__description {
        font-size: 1em;
    }
    .page-login__login-form-container {
        padding: 20px;
    }
    .page-login__form-title {
        font-size: 1.5em;
    }
    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .page-login__forgot-password {
        text-align: center;
        width: 100%;
        order: 2; /* Put forgot password below login button */
    }
    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100% !important;
        max-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__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-login__subsection-title,
    .page-login__guide-step-title,
    .page-login__troubleshooting-title,
    .page-login__security-tip-title,
    .page-login__benefits-title {
        font-size: 1.2em;
    }
    .page-login__text-block,
    .page-login__guide-step-description,
    .page-login__troubleshooting-description,
    .page-login__security-tip-description,
    .page-login__benefits-description,
    .page-login__faq-answer {
        font-size: 0.9em;
    }
    .page-login__guide-item {
        padding: 20px 15px 20px 55px;
    }
    .page-login__guide-item::before {
        left: 10px;
        top: 20px;
        width: 30px;
        height: 30px;
        font-size: 1.2em;
    }
    .page-login__troubleshooting-list,
    .page-login__security-tips-list,
    .page-login__benefits-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-login__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-content {
        padding: 10px;
    }
    .page-login__login-form-container {
        padding: 15px;
    }
    .page-login__form-title {
        font-size: 1.3em;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
}