﻿/* 會員註冊／登入／同意書／補填資料 共用樣式 */
.member-auth-page {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.member-auth-page.consent-page {
    max-width: 720px;
}

.member-auth-brand {
    text-align: center;
    margin-bottom: 18px;
}

    .member-auth-brand img {
        width: 64px;
        height: 64px;
    }

    .member-auth-brand .account-text {
        margin: 8px 0 0;
    }

.member-auth-page .gandau-panel {
    border: 1px solid #e2edef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(29, 91, 99, 0.08);
    padding: 24px 22px;
}

.member-auth-eyebrow {
    margin: 0 0 6px;
    color: #168b99;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.member-auth-title {
    margin: 0 0 6px;
    color: #174f57;
    font-size: 24px;
    font-weight: 800;
}

.member-auth-lead {
    margin: 0 0 18px;
    color: #4f6b70;
    font-size: 15px;
    line-height: 1.6;
}

.member-auth-page .form-group {
    margin-bottom: 16px;
}

    .member-auth-page .form-group > label {
        display: block;
        margin-bottom: 6px;
        color: #174f57;
        font-weight: 700;
    }

    .member-auth-page .form-group .form-hint {
        margin: 6px 0 0;
        color: #6c8b90;
        font-size: 13px;
    }

.member-auth-page .form-control,
.member-auth-page select.form-control {
    min-height: 48px;
    font-size: 16px;
}

.member-auth-page .field-validation-error {
    display: block;
    margin-top: 6px;
    color: #c0392b;
    font-size: 14px;
}

.birth-date-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.birth-date-fields select {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
}

.required-field-mark {
    font-size: .85em;
    font-weight: 600;
}

.member-auth-page .validation-summary-errors ul {
    margin: 0 0 12px;
    padding-left: 18px;
    color: #c0392b;
}

.member-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    margin-top: 18px;
    text-align: center;
}

    .member-auth-actions .custom-btn {
        width: 100%;
    }

.member-auth-link {
    color: #168b99;
    font-weight: 600;
    text-decoration: none;
}

    .member-auth-link:hover {
        text-decoration: underline;
    }

.member-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #8aa3a7;
    font-size: 13px;
}

    .member-auth-divider::before,
    .member-auth-divider::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e2edef;
    }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    border: 1px solid #d5e0e3;
    border-radius: 999px;
    background: #fff;
    color: #174f57;
    font-size: 16px;
    font-weight: 700;
}

    .btn-google:hover {
        background: #f3f8f9;
    }

    .btn-google svg {
        width: 20px;
        height: 20px;
    }

.member-auth-footer {
    margin-top: 16px;
    text-align: center;
    color: #4f6b70;
    font-size: 15px;
}

.member-auth-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eef8f9;
    color: #174f57;
    font-size: 15px;
    line-height: 1.6;
}

.member-auth-notice.is-error {
    background: #fdecea;
    color: #8e2a1f;
}

.member-auth-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

    .member-auth-remember label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        color: #4f6b70;
        font-weight: 500;
    }

/* 註冊方式分頁（電子郵件／手機號碼） */
.member-auth-tabs {
    display: flex;
    gap: 6px;
    margin: 0 0 18px;
    padding: 4px;
    border-radius: 999px;
    background: #eef3f4;
}

.member-auth-tab {
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #4f6b70;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

    .member-auth-tab:hover {
        color: #168b99;
        text-decoration: none;
    }

    .member-auth-tab.is-active {
        background: #fff;
        color: #168b99;
        box-shadow: 0 2px 8px rgba(29, 91, 99, 0.12);
    }

/* 簡訊驗證碼 */
.otp-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f3f8f9;
    color: #23424a;
    font-size: 15px;
}

    .otp-meta.is-expired {
        background: #fdecea;
        color: #8e2a1f;
    }

.otp-timer {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.member-auth-page .otp-input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.35em;
}

.otp-resend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
    color: #4f6b70;
    font-size: 15px;
}

    .otp-resend .btn-link {
        padding: 0 4px;
        font-size: 15px;
        font-weight: 700;
    }

        .otp-resend .btn-link:disabled {
            color: #8aa3a7;
            text-decoration: none;
            cursor: not-allowed;
        }

.otp-resend-hint {
    color: #8aa3a7;
    font-size: 13px;
}

/* 同意書 */
.consent-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px 12px 4px 4px;
    border: 1px solid #e2edef;
    border-radius: 16px;
    background: #fbfdfd;
}

.consent-doc {
    color: #23424a;
    font-size: 15px;
    line-height: 1.75;
}

    .consent-doc h1 {
        margin: 12px 0 4px;
        color: #174f57;
        font-size: 20px;
        font-weight: 800;
        line-height: 1.4;
    }

    .consent-doc h2 {
        margin: 18px 0 6px;
        color: #168b99;
        font-size: 16px;
        font-weight: 800;
    }

    .consent-doc .consent-meta {
        margin: 0 0 12px;
        color: #6c8b90;
        font-size: 13px;
    }

    .consent-doc ol,
    .consent-doc ul {
        padding-left: 22px;
        margin-bottom: 8px;
    }

    .consent-doc li {
        margin-bottom: 4px;
    }

    .consent-doc .consent-declaration {
        margin-top: 16px;
        padding: 12px 14px;
        border-radius: 14px;
        background: #eef8f9;
    }

.consent-readonly .consent-doc {
    padding: 4px;
}

.consent-agree {
    margin-top: 16px;
    padding: 14px;
    border-radius: 14px;
    background: #f3f8f9;
}

.consent-agree-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #174f57;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

    .consent-agree-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
        margin-top: 2px;
    }

html.gandau-font-large .consent-doc { font-size: 17px; }
html.gandau-font-xlarge .consent-doc { font-size: 19px; }

/* 帳號設定中心（Manage） */
.member-auth-page.manage-page {
    max-width: 640px;
    padding-top: 16px;
}

.manage-card {
    margin-bottom: 16px;
}

.manage-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

    .manage-card-head .member-auth-title {
        margin: 0;
        font-size: 18px;
    }

.manage-dl {
    display: grid;
    grid-template-columns: 6.5em 1fr;
    gap: 8px 12px;
    margin: 0;
    color: #23424a;
    font-size: 15px;
}

    .manage-dl dt {
        color: #6c8b90;
        font-weight: 600;
    }

    .manage-dl dd {
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 8px;
        word-break: break-all;
    }

.manage-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e3f4f6;
    color: #168b99;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    vertical-align: middle;
}

    .manage-badge.is-muted {
        background: #eef1f2;
        color: #7a8f93;
    }

.manage-links {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    border-top: 1px solid #e2edef;
}

    .manage-links li {
        border-bottom: 1px solid #e2edef;
    }

    .manage-links a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 48px;
        padding: 10px 4px;
        color: #174f57;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
    }

        .manage-links a::after {
            content: "›";
            color: #8aa3a7;
            font-size: 22px;
            line-height: 1;
        }

        .manage-links a:hover {
            color: #168b99;
        }

.manage-link-hint {
    margin-left: auto;
    color: #6c8b90;
    font-size: 13px;
    font-weight: 500;
}

.manage-empty {
    margin: 0;
    color: #6c8b90;
    font-size: 15px;
}

.manage-card-danger {
    border-color: #f3d3cf !important;
}

    .manage-card-danger .member-auth-title {
        color: #a83a2c;
    }

.manage-danger-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
}

.manage-bullets {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #23424a;
    font-size: 15px;
    line-height: 1.7;
}

/* 異動紀錄 */
.manage-history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.manage-history-item {
    padding: 12px 0;
    border-bottom: 1px solid #e2edef;
}

    .manage-history-item:last-child {
        border-bottom: 0;
    }

.manage-history-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
    color: #6c8b90;
    font-size: 13px;
}

.manage-history-body {
    color: #23424a;
    font-size: 15px;
    line-height: 1.6;
    word-break: break-all;
}

.manage-history-meta {
    margin-top: 2px;
    color: #8aa3a7;
    font-size: 12px;
}

html.gandau-font-large .manage-dl,
html.gandau-font-large .manage-history-body { font-size: 17px; }
html.gandau-font-xlarge .manage-dl,
html.gandau-font-xlarge .manage-history-body { font-size: 19px; }
.password-input-wrap {
    position: relative;
    width: 100%;
}

    .password-input-wrap .form-control {
        padding-right: 42px;
    }

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #98a2b3;
    font-size: 18px;
    cursor: pointer;
}

    .password-toggle:hover {
        color: #667085;
    }

    .password-toggle:focus-visible {
        outline: 2px solid #0d6efd;
        outline-offset: -3px;
        border-radius: 4px;
    }
/* 帳密與生物辨識登入並排，未啟用生物辨識時維持單一按鈕。 */
.member-auth-actions.has-biometric {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}
.member-auth-actions.has-biometric .custom-btn {
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 12px 6px;
    line-height: 1.4;
    white-space: normal;
}
/* 生物辨識裝置設定：分開說明、操作及裝置管理。 */
.biometric-settings .gandau-panel {
    padding: 28px 24px;
}
.biometric-settings .member-auth-title {
    margin-bottom: 14px;
}
.biometric-settings p {
    line-height: 1.8;
}
.biometric-settings .biometric-reminder {
    color: #b42318;
    background: #fff4f2;
    border-left: 3px solid #d92d20;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 0 0 22px;
}
.biometric-settings #biometric-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 24px 0 32px;
}
.biometric-settings #biometric-form > label {
    margin: 0;
    font-weight: 700;
}
.biometric-settings #biometric-form > .custom-btn {
    margin-top: 6px;
    width: 100%;
    min-height: 48px;
}
.biometric-settings .biometric-devices-title {
    border-top: 1px solid #e2edef;
    padding-top: 24px;
    margin: 0 0 14px;
    font-size: 20px;
}
.biometric-settings .biometric-device {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    margin: 0;
    border-bottom: 1px solid #e2edef;
}
.biometric-settings .biometric-settings-links {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e2edef;
}
.member-auth-page .password-checklist {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    color: #6c777d;
    font-size: 14px;
    line-height: 1.8;
}
.password-checklist li { margin: 4px 0; }
.password-checklist .password-rule-icon {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-weight: 700;
}
.member-auth-page .password-checklist .is-met {
    color: #167245;
    font-weight: 600;
}