/* style/login.css */
/* All CSS classes must use BEM naming: .page-login__element-name */
/* Styles are scoped within .page-login */

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Explicitly setting content area background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for PC and mobile */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    text-align: center;
    padding: 80px 20px 60px; /* Adjusted padding, header offset is already on .page-login */
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark hero background */
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-login__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Highlight title with login color */
    line-height: 1.2;
}

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

.page-login__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Buttons */
.page-login__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-login__button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for login button */
}

.page-login__button--login:hover {
    background-color: #e0a73b;
}

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

.page-login__button--register:hover {
    background-color: #FCBC45;
    color: #000000;
}

.page-login__button--submit {
    width: 100%;
    background-color: #FCBC45;
    color: #000000;
    margin-top: 20px;
}

.page-login__button--submit:hover {
    background-color: #e0a73b;
}

.page-login__button--secondary {
    background-color: #000000;
    color: #FFFFFF;
    border: 1px solid #FCBC45;
    padding: 10px 20px;
    font-size: 1em;
}

.page-login__button--secondary:hover {
    background-color: #FCBC45;
    color: #000000;
}

.page-login__button--learn-more {
    background-color: #000000;
    color: #FFFFFF;
    border: 1px solid #FCBC45;
    margin-top: 30px;
}

.page-login__button--learn-more:hover {
    background-color: #FCBC45;
    color: #000000;
}


/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-login__section-title {
    font-size: 2.2em;
    color: #000000;
    text-align: center;
    margin-bottom: 40px;
}

.page-login__form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.page-login__form-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1; /* Subtle background image */
    z-index: 1;
}

.page-login__login-form {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
}

.page-login__form-input::placeholder {
    color: #999999;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    margin-top: -10px; /* Adjust spacing with form group */
}

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

.page-login__checkbox {
    margin-right: 8px;
}

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

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

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

.page-login__register-prompt {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 20px;
}

.page-login__register-text {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555555;
}

/* Process Section */
.page-login__process-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-login__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555555;
}

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

.page-login__process-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-login__process-step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #FCBC45;
    color: #000000;
    border-radius: 50%;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-login__process-step-description {
    color: #555555;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #000000;
    color: #FFFFFF;
}

.page-login__security-section .page-login__section-title {
    color: #FCBC45;
}

.page-login__security-section .page-login__section-description {
    color: #f0f0f0;
}

.page-login__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.page-login__security-text {
    flex: 1;
}

.page-login__security-features {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-login__security-feature-item {
    margin-bottom: 15px;
    font-size: 1.1em;
    position: relative;
    padding-left: 30px;
}

.page-login__security-feature-item::before {
    content: '✓';
    color: #FCBC45;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.page-login__security-image {
    flex: 0 0 auto; /* Prevent image from growing/shrinking */
    max-width: 400px; /* Max width for image */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-login__faq-list {
    max-width: 900px;
    margin: 50px auto 30px;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-item[open] .page-login__faq-question {
    border-bottom-color: transparent;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    color: #FCBC45;
    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: 15px 25px 20px;
    color: #555555;
    font-size: 1.0em;
}

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

.page-login__faq-image {
    display: block;
    margin: 40px auto 0;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__security-content {
        flex-direction: column;
        text-align: center;
    }
    .page-login__security-image {
        max-width: 100%;
        margin-top: 30px;
    }
    .page-login__security-feature-item {
        padding-left: 0;
        text-align: left;
    }
    .page-login__security-feature-item::before {
        position: static;
        margin-right: 10px;
    }
    .page-login__faq-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-login {
        padding-top: var(--header-offset, 120px); /* Ensure mobile also has header offset */
    }
    .page-login__hero-section {
        padding: 60px 15px 40px;
    }
    .page-login__main-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__button {
        width: 100%;
        padding: 12px 20px;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__form-wrapper {
        padding: 30px 20px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__forgot-password {
        margin-top: 5px;
    }
    .page-login__process-list {
        grid-template-columns: 1fr;
    }
    .page-login__security-section {
        padding: 50px 0;
    }
    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 10px 20px 15px;
    }
    /* Mobile content image overflow prevention */
    .page-login__hero-image,
    .page-login__form-image,
    .page-login__security-image,
    .page-login__faq-image {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__hero-description {
        font-size: 0.9em;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__button {
        font-size: 1em;
    }
}