/* style/login.css */
.page-login {
    color: #333333; /* Dark text for light body background */
    background-color: #FFFFFF; /* Ensure page content background is white */
}

.page-login__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure header offset for PC */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero section */
    color: #FFFFFF;
}

.page-login__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

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

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

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min-width */
    min-height: 200px; /* Enforce min-height */
}

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

.page-login__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #000000; /* Dark title for light background */
    text-align: center;
    margin-bottom: 30px;
}

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

.page-login__login-form-wrapper {
    margin-bottom: 80px;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__form-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-login__login-form {
    flex: 1;
    min-width: 300px;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #FFFFFF;
}

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

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

.page-login__login-button {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for login button */
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.page-login__login-button:hover {
    background-color: #e6a73c;
    transform: translateY(-2px);
}

.page-login__register-link {
    color: #000000; /* Register link text color */
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    text-align: center;
    display: block;
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 8px;
    background-color: #FFFFFF; /* Register button color */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__register-link:hover {
    background-color: #000000;
    color: #FFFFFF;
}

.page-login__forgot-password-link {
    color: #555555;
    text-decoration: none;
    font-size: 0.95em;
    text-align: center;
    display: block;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #FCBC45;
}

.page-login__form-illustration {
    flex: 1;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    min-width: 200px; /* Enforce min-width */
    min-height: 200px; /* Enforce min-height */
}

.page-login__login-process-section {
    margin-bottom: 80px;
}

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

.page-login__process-item {
    background-color: #FFFFFF;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    counter-increment: process-step;
    position: relative;
    padding-left: 70px;
}

.page-login__process-item::before {
    content: counter(process-step);
    position: absolute;
    left: 20px;
    top: 30px;
    background-color: #FCBC45;
    color: #000000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.4em;
    font-weight: 700;
}

.page-login__process-item:hover {
    transform: translateY(-5px);
}

.page-login__process-step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #000000;
}

.page-login__process-step-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

.page-login__security-section {
    margin-bottom: 80px;
}

.page-login__security-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.page-login__security-image {
    flex: 1;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min-width */
    min-height: 200px; /* Enforce min-height */
}

.page-login__security-list {
    flex: 1;
    list-style: none;
    padding: 0;
    min-width: 300px;
}

.page-login__security-item {
    background-color: #FFFFFF;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.page-login__security-item:last-child {
    margin-bottom: 0;
}

.page-login__security-tip-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #000000;
}

.page-login__security-tip-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555555;
}

.page-login__faq-section {
    margin-bottom: 60px;
}

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

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

.page-login__faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
    user-select: none;
}

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

.page-login__faq-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FCBC45;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 2.8em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__form-container {
        flex-direction: column;
    }
    .page-login__form-illustration {
        order: -1; /* Move illustration above form on smaller screens */
        margin-bottom: 30px;
    }
    .page-login__security-content {
        flex-direction: column;
    }
    .page-login__security-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
        padding-bottom: 40px;
    }
    .page-login__hero-title {
        font-size: 2.2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__content-area {
        padding: 40px 15px;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-intro {
        font-size: 0.95em;
    }
    .page-login__login-form-wrapper {
        padding: 30px 20px;
    }
    .page-login__login-button, .page-login__register-link {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-login__process-item {
        padding-left: 60px;
    }
    .page-login__process-item::before {
        width: 35px;
        height: 35px;
        font-size: 1.2em;
        left: 15px;
        top: 25px;
    }
    .page-login__process-step-title {
        font-size: 1.2em;
    }
    .page-login__security-item {
        padding: 20px;
    }
    .page-login__security-tip-title {
        font-size: 1.1em;
    }
    .page-login__faq-question {
        font-size: 1.05em;
        padding: 18px 20px;
    }
    .page-login__faq-toggle {
        right: 20px;
        font-size: 1.3em;
    }
    .page-login__faq-answer {
        padding: 0 20px 18px 20px;
    }
    /* Mobile image constraint */
    .page-login img {
        max-width: 100%;
        height: auto;
    }
    .page-login__form-illustration, .page-login__security-image, .page-login__hero-image {
        min-width: 200px;
        min-height: 200px;
    }
}