/* style/login.css */
.page-login {
    color: #333333; /* Default dark text for light body background */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

.page-login__hero-section {
    background-color: #000000; /* Primary color background */
    padding-top: var(--header-offset, 120px);
    position: relative;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

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

.page-login__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
}

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
}

.page-login__button--login {
    background-color: #FCBC45; /* Login color */
    color: #000000; /* Primary color for text */
    border: 2px solid #FCBC45;
}

.page-login__button--login:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-login__button--register {
    background-color: #FFFFFF; /* Register color */
    color: #000000; /* Primary color for text */
    border: 2px solid #FFFFFF;
}

.page-login__button--register:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-login__section-title {
    font-size: 2.5em;
    color: #000000; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-login__entry-explanation, .page-login__login-process, .page-login__security-tips, .page-login__faq-section, .page-login__final-cta {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.page-login__entry-explanation {
    background-color: #f9f9f9;
}

.page-login__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-login__text-content p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-login__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-login__link-button {
    display: inline-block;
    background-color: #000000;
    color: #FCBC45;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    border: 1px solid #000000;
}

.page-login__link-button:hover {
    background-color: #333333;
    color: #FFFFFF;
}

.page-login__link-button--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.page-login__process-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__process-steps {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-login__step-item {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    counter-increment: step-counter;
    text-align: center;
}

.page-login__step-item::before {
    content: counter(step-counter);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FCBC45;
    color: #000000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 2px solid #000000;
}

.page-login__step-title {
    font-size: 1.5em;
    color: #000000;
    margin-top: 15px;
    margin-bottom: 15px;
}

.page-login__security-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__security-card {
    background-color: #f0f0f0;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__security-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Constrain image size within card */
    border-radius: 6px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-login__card-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 15px;
}

.page-login__faq-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__faq-question {
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: #555555;
}

.page-login__faq-answer p {
    margin-bottom: 10px;
}

.page-login__final-cta {
    background-color: #000000; /* Primary color background */
    color: #FFFFFF;
    text-align: center;
    padding: 80px 20px;
}

.page-login__final-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__button--large {
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 10px;
}

.page-login__note {
    margin-top: 30px;
    font-size: 1.1em;
}

.page-login__note a {
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
}

.page-login__note a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-login__hero-title {
        font-size: 2.5em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__content-grid {
        grid-template-columns: 1fr;
    }
    .page-login__image--right {
        order: -1; /* Image appears above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-login {
        padding-top: var(--header-offset, 120px); /* Ensure header offset for mobile */
    }
    .page-login__hero-title {
        font-size: 2em;
    }
    .page-login__hero-description, .page-login__process-intro, .page-login__security-intro, .page-login__faq-intro, .page-login__final-description {
        font-size: 1em;
    }
    .page-login__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__button {
        width: 100%;
        padding: 12px 20px;
    }
    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-login__process-steps, .page-login__security-grid {
        grid-template-columns: 1fr;
    }
    .page-login__step-item, .page-login__security-card, .page-login__faq-item {
        padding: 20px;
    }
    .page-login__step-title, .page-login__card-title {
        font-size: 1.3em;
    }
    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px;
    }
    .page-login__image, .page-login__security-image {
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
    /* Ensure all content images within .page-login are responsive and not too small */
    .page-login img {
        max-width: 100%;
        height: auto;
    }
    .page-login__hero-section {
        padding: 40px 15px;
    }
    .page-login__final-cta {
        padding: 60px 15px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__button--large {
        font-size: 1.1em;
        padding: 15px 25px;
    }
}