﻿.account-page {
    min-height: calc(100vh - 110px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 38px 16px 60px;
}

.account-card {
    width: 100%;
    max-width: 590px;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    background: linear-gradient( 145deg, rgba(17, 24, 39, 0.97), rgba(5, 15, 31, 0.98) );
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.32);
    color: #e5edf8;
}

.account-card-sm {
    max-width: 510px;
}

.account-title {
    margin: 0 0 10px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.account-subtitle {
    margin: 0 0 28px;
    text-align: center;
    color: #a8b4c7;
    line-height: 1.7;
}

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

.account-label {
    display: block;
    margin-bottom: 8px;
    color: #f2f5fa;
    font-size: 17px;
    font-weight: 700;
}

.account-control {
    width: 100%;
    min-height: 52px;
    padding: 11px 14px;
    border: 1px solid #d4d8df;
    border-radius: 10px;
    background: #f5f6f8;
    color: #111827;
    font-size: 17px;
    outline: none;
}

    .account-control:focus {
        border-color: #4f9df8;
        box-shadow: 0 0 0 3px rgba(79, 157, 248, 0.22);
    }

.account-password-wrap {
    position: relative;
}

    .account-password-wrap .account-control {
        padding-right: 54px;
    }

.account-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 40px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-50%);
}

.account-captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: center;
}

.account-captcha-image {
    display: block;
    width: 150px;
    height: 50px;
    border-radius: 9px;
    cursor: pointer;
}

.account-captcha-help {
    margin-top: 7px;
    color: #9aa7bb;
    font-size: 14px;
}

.account-checkbox-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 5px 0 22px;
    font-size: 16px;
    font-weight: 700;
}

    .account-checkbox-row input {
        width: 18px;
        height: 18px;
    }

.account-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.account-button {
    min-width: 110px;
    min-height: 48px;
    padding: 10px 22px;
    border: 0;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
}

.account-button-primary {
    background: linear-gradient(135deg, #f8ba58, #ff9f2f);
    color: #1f2937;
    box-shadow: 0 10px 24px rgba(255, 159, 47, 0.24);
}

.account-button-secondary {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.82);
    color: #edf2f8;
}

.account-button:hover {
    filter: brightness(1.05);
}

.account-message {
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 10px;
    line-height: 1.6;
}

.account-message-success {
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(22, 101, 52, 0.26);
    color: #96f2b7;
}

.account-message-error,
.validation-summary-errors {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 10px;
    background: rgba(127, 29, 29, 0.25);
    color: #fecaca;
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 20px;
    }

.field-validation-error {
    display: block;
    margin-top: 6px;
    color: #fda4af;
    font-size: 14px;
}

.account-footer-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

    .account-footer-links a {
        color: #b8c7dc;
        text-decoration: none;
    }

        .account-footer-links a:hover {
            color: #ffffff;
        }

.account-notice {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(250, 204, 21, 0.34);
    border-radius: 12px;
    background: rgba(113, 63, 18, 0.2);
    color: #fde68a;
    line-height: 1.65;
}

.access-denied-icon {
    margin-bottom: 18px;
    text-align: center;
    color: #fb7185;
    font-size: 54px;
}

@media (max-width: 576px) {
    .account-page {
        padding: 18px 4px 38px;
    }

    .account-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .account-title {
        font-size: 25px;
    }

    .account-captcha-row {
        grid-template-columns: minmax(0, 1fr) 125px;
    }

    .account-captcha-image {
        width: 125px;
    }

    .account-actions {
        justify-content: stretch;
    }

    .account-button {
        flex: 1;
        min-width: 0;
    }
}

/* =========================================================
   第三刀第一步：註冊與帳號狀態頁
   ========================================================= */

.account-field-help {
    margin-top: 7px;
    color: #9aa7bb;
    font-size: 14px;
    line-height: 1.55;
}

.account-status-card {
    text-align: center;
}

.account-status-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 34px;
}

.account-status-icon-success {
    color: #86efac;
    background: rgba(22, 101, 52, 0.34);
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.account-status-icon-waiting {
    color: #fde68a;
    background: rgba(113, 63, 18, 0.28);
    border: 1px solid rgba(250, 204, 21, 0.42);
}

.account-status-account {
    margin: -8px 0 20px;
    color: #cbd5e1;
    font-size: 17px;
}

.account-status-account strong {
    color: #ffffff;
}

.account-actions-center {
    justify-content: center;
}

@media (max-width: 576px) {
    .account-status-icon {
        width: 68px;
        height: 68px;
        font-size: 29px;
    }

    .account-footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
}


.validation-summary-valid { display: none !important; }

/* 第三刀第二步：Email 驗證 */
.account-status-icon-error {
    color: #fca5a5;
    background: rgba(127, 29, 29, 0.30);
    border: 1px solid rgba(248, 113, 113, 0.45);
}
.account-message-warning {
    border: 1px solid rgba(250, 204, 21, 0.38);
    background: rgba(113, 63, 18, 0.24);
    color: #fde68a;
}


/* 第三刀第三步：密碼流程 */
.account-footer-links {
    flex-wrap: wrap;
}

.account-password-note {
    margin-top: 7px;
    color: #9fb0c7;
    font-size: 14px;
    line-height: 1.55;
}

.account-status-icon-key {
    color: #93c5fd;
    background: rgba(30, 64, 175, 0.25);
    border: 1px solid rgba(96, 165, 250, 0.42);
}

/* =========================================================
   第三刀第三步修正：登入畫面精簡與縮小
   ========================================================= */
.account-login-page {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 36px;
}

.account-login-card {
    max-width: 460px;
    padding: 24px 26px 22px;
    border-radius: 20px;
}

.account-login-card .account-title {
    margin-bottom: 6px;
    font-size: 26px;
}

.account-login-card .account-subtitle {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.55;
}

.account-login-card .account-form-group {
    margin-bottom: 15px;
}

.account-login-card .account-label {
    margin-bottom: 6px;
    font-size: 16px;
}

.account-login-card .account-control {
    min-height: 46px;
    padding: 9px 13px;
    font-size: 16px;
}

.account-login-card .account-password-toggle {
    width: 38px;
    height: 34px;
}

.account-login-card .account-captcha-row {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
}

.account-login-card .account-captcha-image {
    width: 132px;
    height: 46px;
}

.account-login-card .account-captcha-help {
    margin-top: 5px;
    font-size: 13px;
}

.account-login-card .account-checkbox-row {
    margin: 2px 0 16px;
    font-size: 15px;
}

.account-login-card .account-actions {
    margin-top: 16px;
    gap: 10px;
}

.account-login-card .account-button {
    min-width: 104px;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 13px;
    font-size: 16px;
}

.account-login-footer {
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-top: 20px;
    padding-top: 16px;
    font-size: 15px;
}

@media (max-width: 576px) {
    .account-login-page {
        padding: 14px 8px 28px;
    }

    .account-login-card {
        max-width: 100%;
        padding: 22px 18px 20px;
        border-radius: 18px;
    }

    .account-login-card .account-title {
        font-size: 24px;
    }

    .account-login-card .account-captcha-row {
        grid-template-columns: minmax(0, 1fr) 118px;
    }

    .account-login-card .account-captcha-image {
        width: 118px;
        height: 46px;
    }

    .account-login-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .account-login-footer a {
        white-space: nowrap;
    }
}



/* =========================================================
   第四刀第一步版面修正：變更密碼表單精簡
========================================================= */
.account-change-password-page {
    min-height: calc(100vh - 76px);
    padding-top: 22px;
    padding-bottom: 34px;
}

.account-change-password-card {
    max-width: 440px;
    padding: 23px 26px 24px;
    border-radius: 20px;
}

.account-change-password-card .account-title {
    margin-bottom: 6px;
    font-size: 26px;
}

.account-change-password-card .account-subtitle {
    margin-bottom: 19px;
    font-size: 14px;
    line-height: 1.55;
}

.account-change-password-card .account-form-group {
    margin-bottom: 14px;
}

.account-change-password-card .account-label {
    margin-bottom: 6px;
    font-size: 16px;
}

.account-change-password-card .account-control {
    min-height: 46px;
    padding: 9px 13px;
    font-size: 16px;
}

.account-change-password-card .account-password-toggle {
    width: 37px;
    height: 34px;
}

.account-change-password-card .account-password-note {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
}

.account-change-password-card .field-validation-error {
    margin-top: 5px;
    font-size: 12px;
}

.account-change-password-card .account-actions {
    margin-top: 18px;
    gap: 10px;
}

.account-change-password-card .account-button {
    min-width: 104px;
    min-height: 44px;
    padding: 8px 17px;
    border-radius: 13px;
    font-size: 16px;
}

@media (max-width: 576px) {
    .account-change-password-page {
        padding: 14px 8px 28px;
    }

    .account-change-password-card {
        max-width: 100%;
        padding: 21px 18px 22px;
        border-radius: 18px;
    }

    .account-change-password-card .account-title {
        font-size: 24px;
    }
}


/* =========================================================
   第四刀第三步：一般會員帳號資料
========================================================= */

.account-profile-page {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 8px 0 34px;
    color: #e5eefb;
}

.account-profile-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.account-profile-head h1 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 900;
}

.account-profile-head p {
    margin: 0;
    color: #9fb2cf;
    font-size: 14px;
}

.account-profile-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 11px;
    color: #dbeafe;
    background: rgba(30, 41, 59, .68);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.account-profile-back:hover {
    color: #ffffff;
    border-color: rgba(96, 165, 250, .48);
    background: rgba(37, 99, 235, .22);
}

.account-profile-card {
    padding: 24px 26px 25px;
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 39, .98),
            rgba(6, 17, 34, .98)
        );
    box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
}

.account-profile-message {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 800;
}

.account-profile-message.is-success {
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, .38);
    background: rgba(20, 83, 45, .30);
}

.account-profile-validation {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, .42);
    border-radius: 11px;
    color: #fecaca;
    background: rgba(127, 29, 29, .28);
}

.account-profile-validation.validation-summary-valid {
    display: none;
}

.account-profile-validation ul {
    margin: 0;
    padding-left: 19px;
}

.account-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 20px;
}

.account-profile-group {
    min-width: 0;
}

.account-profile-group.is-wide {
    grid-column: 1 / -1;
}

.account-profile-label {
    display: block;
    margin-bottom: 7px;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 900;
}

.account-profile-control {
    width: 100%;
    min-height: 47px;
    padding: 9px 13px;
    border: 1px solid #d7dce5;
    border-radius: 10px;
    color: #111827;
    background: #f5f6f8;
    font-size: 16px;
    outline: none;
}

.account-profile-control:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .20);
}

.account-profile-control[readonly] {
    color: #475569;
    background: #e8ebf0;
}

.account-profile-help {
    margin-top: 6px;
    color: #8fa4c8;
    font-size: 12px;
    line-height: 1.45;
}

.account-profile-group .field-validation-error {
    display: block;
    margin-top: 6px;
    color: #fda4af;
    font-size: 13px;
}

.account-profile-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.account-profile-status > div {
    min-height: 66px;
    padding: 11px 12px;
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 12px;
    background: rgba(9, 24, 45, .55);
}

.account-profile-status span,
.account-profile-status strong {
    display: block;
}

.account-profile-status span {
    color: #8fa4c8;
    font-size: 12px;
    font-weight: 800;
}

.account-profile-status strong {
    margin-top: 5px;
    color: #e5eefb;
    font-size: 14px;
}

.account-profile-status strong.is-on {
    color: #86efac;
}

.account-profile-status strong.is-off {
    color: #cbd5e1;
}

.account-profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.account-profile-button {
    min-width: 108px;
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 17px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.account-profile-button.is-primary {
    color: #172033;
    background: linear-gradient(135deg, #f8ba58, #ff9f2f);
    box-shadow: 0 9px 22px rgba(255, 159, 47, .20);
}

.account-profile-button.is-secondary {
    color: #e5eefb;
    border: 1px solid rgba(148, 163, 184, .30);
    background: rgba(30, 41, 59, .78);
}

.account-profile-button:hover {
    filter: brightness(1.07);
    text-decoration: none;
}

.account-email-changed-card {
    max-width: 530px;
    text-align: center;
}

.account-result-icon.is-warning {
    color: #facc15;
    border-color: rgba(250, 204, 21, .45);
    background: rgba(113, 63, 18, .30);
}

.account-email-panel {
    margin: 16px 0;
    padding: 12px 14px;
    border: 1px solid rgba(96, 165, 250, .30);
    border-radius: 11px;
    color: #bfdbfe;
    background: rgba(30, 64, 175, .18);
    font-size: 16px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .account-profile-page {
        padding: 2px 0 30px;
    }

    .account-profile-head {
        align-items: stretch;
        flex-direction: column;
    }

    .account-profile-back {
        align-self: flex-start;
    }

    .account-profile-head h1 {
        font-size: 27px;
    }

    .account-profile-card {
        padding: 21px 18px 23px;
        border-radius: 17px;
    }

    .account-profile-grid,
    .account-profile-status {
        grid-template-columns: 1fr;
    }

    .account-profile-group.is-wide {
        grid-column: auto;
    }

    .account-profile-actions {
        justify-content: stretch;
    }

    .account-profile-button {
        flex: 1;
    }
}
