/* --- 基本重設與全域設定 --- */
:root {
    --primary-color: #e5171c; /* 主題色 */
    --primary-hover-color: #ca0a0e;
    --text-color: #333;
    --text-light-color: #666;
    --border-color: #ddd;
    --background-light: #f8f9fa;
    --white-color: #fff;
    --body-background: #e4e8ee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--body-background);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- 主要容器 --- */
.login-container {
    width: 100%;
    max-width: 800px;
/*    background-color: var(--white-color);*/
    background-color: #fefbfc;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* 確保圓角效果能裁切內部元素 */
    display: flex;
    flex-direction: column;
}

header {
    padding: 10px 20px 5px 20px;
    background-color: #e5171c;
}

.logo-pioneer {
    height: 40px;
    width: auto;
}

.hero-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    margin-top: 10px;
}

.hero-image img {
    width: 800px;
    height: auto;
}



/* --- 登入會員表單欄位 --- */
.login-form-area {
    padding: 20px 40px;
}

h1 {
    font-size: 2.3em;
    font-weight: 700;
/*    color: var(--primary-color);*/
    color: #e5171c;
    text-align: center;
    margin-bottom: 0px;
}

.subtitle {
    font-size: 1.7em;
    font-weight: 500;
    color: var(--text-light-color);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}


.subscriber_number_red {
    color: #f55458;
    font-size: 0.9em;
}



.form-group label {
    display: block;
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1.2em;
    font-family: 'Noto Sans TC', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15);
}

.form-group input::placeholder {
    color: #aaa;
}

.form-options {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.form-options input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.form-options label {
    font-size: 1.2em;
    color: var(--text-light-color);
    color: #f55458;
}

.login-btn {
    width: 100%;
    padding: 12px;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--white-color);
    background-color: var(--primary-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: var(--primary-hover-color);
}


/* --- 服務說明 --- */
.service-info {
    padding: 0 40px 15px;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.service-info h2 {
    font-size: 1.1em;
    font-weight: 700;
    margin: 20px 0px 5px 0px;
}

.service-info ul {
    list-style: none; /* 移除預設的點 */
}

.service-info li {
    font-size: 1.1em;
    color: var(--text-light-color);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

/* 使用 ::before 偽元素自訂項目符號 */
.service-info li::before {
    content: '＊';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- footer --- */
footer {
/*    background-color: var(--background-light);*/
    background-color: #faf1f4;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 20px; /* Logo與文字的間距 */
}

.logo-wealth {
    height: 40px;
    width: auto;
    flex-shrink: 0; /* 避免Logo在空間不足時被壓縮 */
    padding-left: 15px;
}

.footer-text {
    font-size: 0.9em;
    color: var(--text-light-color);
    line-height: 1.7;
}

.copyright {
    display: block;
    margin-top: 8px;
    font-weight: 500;
}


/* --- 響應式設計(手機版) --- */
@media (max-width: 768px) {
    body {
        padding: 0;
        background-color: var(--white-color);
    }

    header {
        padding: 5px 10px 0px 10px;
    }


    .login-container {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .hero-image {
        height: 90px; /* 在手機上縮小圖片高度 */
    }

    .hero-image img {
        width: 100%;
        height: auto;
    }

    .login-form-area {
        padding: 25px;
    }

    h1 {
        font-size: 2.5em;
        line-height: 47px;
    }

    .subtitle {
        font-size: 1.2em;
    }
    
    .service-info h2 {
        margin-top: -10px;
    }

    .service-info {
        padding: 25px 25px 5px 25px;
        margin-top: 10px;
    }

    footer {
        flex-direction: column; /* 將Logo與文字改為垂直排列 */
        align-items: flex-start; /* 靠左對齊 */
        padding: 25px;
        text-align: left;
    }

   .footer-text {
        font-size: 1em;
        line-height: 1.7;
    }

   .logo-wealth {
        padding-left: 0px;
        /*display: block;
        margin: 0 auto;*/
    }

   .copyright {
        text-align: center;
    }


}