/* style/login.css */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #1F2D3D; /* Text Main */
    background: #F4F7FB; /* Background */
    line-height: 1.6;
}

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

.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Enforce top-image-bottom-text */
    align-items: center;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    background-color: #F4F7FB; /* Match body background */
}

.page-login__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-login__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: #FFFFFF; /* Card BG */
    width: 100%;
    max-width: 800px; /* Constrain content width */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: -80px; /* Overlap slightly with image for visual effect */
    position: relative;
    z-index: 10;
    color: #1F2D3D; /* Text Main */
}

.page-login__main-title {
    font-size: 2.5em; /* Use em/rem for responsiveness, no fixed px */
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.1em;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 20px;
}

/* Login Form Section */
.page-login__form-section {
    padding: 60px 0;
    background: #F4F7FB; /* Background */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px; /* Adjust padding due to hero content overlap */
}

.page-login__section-title {
    font-size: 2em;
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
}

.page-login__form-wrapper {
    background: #FFFFFF; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
}

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

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #1F2D3D; /* Text Main */
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #000000; /* Custom Color_1776249996415 */
}

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

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

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

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

.page-login__checkbox-label {
    color: #1F2D3D; /* Text Main */
}

.page-login__forgot-password-link {
    color: #2F6BFF; /* Primary Color */
    text-decoration: none;
    font-weight: 500;
}

.page-login__forgot-password-link:hover {
    text-decoration: underline;
}

.page-login__submit-button {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
    color: #FFFFFF;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.page-login__submit-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-login__social-login {
    margin-top: 30px;
    text-align: center;
}

.page-login__social-text {
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
    position: relative;
}
.page-login__social-text::before,
.page-login__social-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #D6E2FF;
}
.page-login__social-text::before {
    left: 0;
}
.page-login__social-text::after {
    right: 0;
}

.page-login__social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.page-login__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 1em;
    text-decoration: none;
    color: #FFFFFF;
    font-weight: bold;
    flex: 1;
    max-width: 180px;
    box-sizing: border-box;
}

.page-login__social-btn--facebook {
    background-color: #3b5998;
}

.page-login__social-btn--google {
    background-color: #dd4b39;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 30px;
    font-size: 1em;
    color: #1F2D3D; /* Text Main */
}

.page-login__register-link {
    color: #2F6BFF; /* Primary Color */
    text-decoration: none;
    font-weight: bold;
}

.page-login__register-link:hover {
    text-decoration: underline;
}

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

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

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

.page-login__security-section .page-login__section-title {
    color: #FFFFFF;
    text-align: left;
    margin-bottom: 25px;
}

.page-login__security-section p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
}

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

.page-login__security-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1em;
}

.page-login__icon {
    margin-right: 10px;
    font-size: 1.2em;
    color: #6FA3FF; /* Secondary Color */
}
.page-login__icon--check::before {
    content: '✔'; /* Unicode checkmark */
}


.page-login__btn-secondary {
    background: #FFFFFF;
    color: #2F6BFF; /* Primary Color */
    border: 2px solid #2F6BFF;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.page-login__btn-secondary:hover {
    background: #F4F7FB; /* Background */
    color: #2F6BFF;
}

.page-login__security-image-wrapper {
    flex: 0 0 40%;
    max-width: 40%;
}

.page-login__security-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    background: #F4F7FB; /* Background */
}

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

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

.page-login__cta-section .page-login__section-title {
    text-align: left;
    margin-bottom: 25px;
}

.page-login__cta-section p {
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-login__cta-buttons {
    display: flex;
    gap: 20px;
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
    color: #FFFFFF;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-login__cta-image-wrapper {
    flex: 0 0 40%;
    max-width: 40%;
}

.page-login__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* --- Responsive Styles --- */
/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-login__container {
        padding: 15px;
    }

    .page-login__hero-content {
        padding: 30px 15px;
        margin-top: -60px;
    }

    .page-login__main-title {
        font-size: 2em; /* Adjust for mobile */
    }

    .page-login__description {
        font-size: 1em;
    }

    .page-login__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-login__form-wrapper {
        padding: 25px;
    }

    .page-login__form-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .page-login__social-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-login__social-btn {
        max-width: 100%;
        width: 100%;
    }

    .page-login__security-content,
    .page-login__cta-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .page-login__security-section .page-login__section-title,
    .page-login__cta-section .page-login__section-title {
        text-align: center;
    }

    .page-login__security-image-wrapper,
    .page-login__cta-image-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__submit-button,
    .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__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

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

    .page-login__section,
    .page-login__card,
    .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* --- Required boilerplate for non-existent sections on login page, as per instruction --- */
/* 1. 顶区轮播 */
@media (max-width: 768px) {
    .page-login__hero-carousel-section { /* This page doesn't have a carousel, but including as boilerplate */
        padding-top: 10px !important; 
    }
    .page-login__hero-slider {
        /* Specific slider styles for mobile if it existed */
    }
    .page-login__hero-slide {
        /* Specific slide styles for mobile if it existed */
    }
}

/* 2. 操作指引外框 + 五张 `team` 竖型卡 */
@media (max-width: 768px) {
    .page-login__guide-box { /* This page doesn't have a guide box, but including as boilerplate */
        padding: 15px;
    }
    .page-login__guide-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr); /* Example grid for 5 items: top two span 3, bottom three span 2 */
        gap: 8px;
    }
    .page-login__guide-card {
        padding-top: 0 !important; /* Reset specific padding */
    }
    .page-login__guide-card--pos-1, .page-login__guide-card--pos-2 {
        grid-column: span 3;
    }
    .page-login__guide-card--pos-3, .page-login__guide-card--pos-4, .page-login__guide-card--pos-5 {
        grid-column: span 2;
    }
    .page-login__guide-card img {
        aspect-ratio: 250/350; /* Maintain aspect ratio for team images */
        object-fit: contain;
        width: 100%;
        height: auto;
    }
}

/* 3. `home_content` 外框 */
@media (max-width: 768px) {
    .page-login__home-content-box { /* This page doesn't have home content box, but including as boilerplate */
        max-width: 100% !important;
        height: auto !important; /* Full height on mobile */
        padding: 15px;
        box-shadow: none;
        border: none;
    }
    .page-login__home-content-inner {
        height: auto !important; /* Full height on mobile */
        overflow: visible !important; /* No scrollbar on mobile */
    }
}

/* 4. 博客卡片区 */
@media (max-width: 768px) {
    .page-login__blog-section { /* This page doesn't have a blog section, but including as boilerplate */
        padding: 30px 15px;
    }
    .page-login__blog-grid {
        grid-template-columns: repeat(1, 1fr) !important; /* Single column on mobile */
        gap: 15px;
    }
}