* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        Inter,
        "Noto Sans TC",
        "Microsoft JhengHei",
        Arial,
        sans-serif;

    color: #17233f;
    background: #f8f9ff;
}

a {
    color: inherit;
}

.site-header {
    height: 82px;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid #edf0f7;
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1380px, calc(100% - 64px));
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.brand-mark {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.brand-ct {
    color: #17233f;
}

.brand-art {
    font-weight: 900;

    background: linear-gradient(
        90deg,
        #7548e8,
        #4776e6,
        #31b79b
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    color: #81899b;
    font-size: 13px;
    letter-spacing: .02em;
}

.back-home {
    padding: 10px 16px;
    border-radius: 999px;

    color: #566078;
    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: .2s ease;
}

.back-home:hover {
    color: #315bd5;
    background: #f0f3ff;
}


.account-page {
    min-height: calc(100vh - 140px);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(470px, 600px);
}


/* LEFT */

.intro-panel {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 70px;

    background:
        radial-gradient(
            circle at 20% 25%,
            rgba(128, 98, 232, .18),
            transparent 32%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(63, 167, 203, .17),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #f6f3ff,
            #f2f8ff
        );
}

.intro-panel::before {
    content: "";
    position: absolute;

    width: 430px;
    height: 430px;

    left: -180px;
    bottom: -190px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .46);
}

.intro-inner {
    position: relative;
    z-index: 1;

    width: min(620px, 100%);
}

.eyebrow {
    margin-bottom: 20px;

    color: #6b57d7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.intro-inner h1 {
    margin: 0;

    color: #17233f;
    font-size: clamp(44px, 4vw, 68px);
    line-height: 1.12;
    letter-spacing: -.055em;
}

.intro-text {
    max-width: 510px;
    margin: 26px 0 34px;

    color: #697389;
    font-size: 17px;
    line-height: 1.9;
}

.free-box {
    max-width: 500px;

    display: flex;
    gap: 17px;
    align-items: flex-start;

    padding: 22px 24px;

    border: 1px solid rgba(105, 83, 216, .12);
    border-radius: 22px;

    background: rgba(255, 255, 255, .72);

    box-shadow:
        0 16px 45px
        rgba(64, 73, 130, .08);
}

.free-icon {
    width: 43px;
    height: 43px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    color: #ffffff;
    font-size: 20px;

    background:
        linear-gradient(
            135deg,
            #7550e6,
            #4e7fe4
        );
}

.free-box strong {
    display: block;

    margin: 1px 0 6px;

    color: #332b67;
    font-size: 16px;
}

.free-box p {
    margin: 0;

    color: #71798c;
    font-size: 14px;
    line-height: 1.7;
}

.service-list {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;

    margin-top: 30px;

    color: #626c80;
    font-size: 13px;
    font-weight: 700;
}

.service-list > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;

    display: inline-block;

    border-radius: 50%;
}

.dot.blue {
    background: #4e7be5;
}

.dot.purple {
    background: #8b62dd;
}

.dot.green {
    background: #3eb695;
}


/* RIGHT */

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 55px 60px;

    background: #ffffff;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.mobile-brand {
    display: none;

    margin-bottom: 25px;

    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.login-card h2 {
    margin: 0 0 9px;

    color: #17233f;
    font-size: 30px;
    letter-spacing: -.035em;
}

.login-subtitle {
    margin: 0 0 30px;

    color: #8991a2;
    font-size: 14px;
}

.mobile-free {
    display: none;
}

.social-buttons {
    display: grid;
    gap: 11px;
}

.social-button {
    position: relative;

    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #e1e5ed;
    border-radius: 13px;

    color: #26324a;
    background: #ffffff;

    font: inherit;
    font-size: 14px;
    font-weight: 750;

    cursor: pointer;

    transition:
        border-color .2s ease,
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.social-button:hover {
    transform: translateY(-1px);

    border-color: #cdd4e3;
    background: #fbfcff;

    box-shadow:
        0 7px 20px
        rgba(41, 53, 91, .07);
}

.provider-icon {
    position: absolute;
    left: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 900;
}

.google-icon {
    width: 25px;
    height: 25px;

    border-radius: 50%;

    color: #4285f4;
    font-size: 17px;

    border: 1px solid #e6e8ed;
}

.apple-icon {
    width: 25px;
    height: 25px;

    color: #111111;
    font-size: 18px;
}

.line-icon {
    width: 33px;
    height: 22px;

    border-radius: 6px;

    color: #ffffff;
    background: #06c755;

    font-size: 8px;
    letter-spacing: -.04em;
}

.facebook-icon {
    width: 25px;
    height: 25px;

    border-radius: 50%;

    color: #ffffff;
    background: #1877f2;

    font-family: Arial, sans-serif;
    font-size: 19px;
}

.divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 13px;

    margin: 27px 0;
}

.divider span {
    height: 1px;
    background: #e8eaf0;
}

.divider em {
    color: #9aa1af;
    font-size: 12px;
    font-style: normal;
}

.login-form label {
    display: block;

    margin-bottom: 8px;

    color: #3c465c;
    font-size: 13px;
    font-weight: 750;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    height: 50px;

    padding: 0 15px;
    margin-bottom: 18px;

    outline: none;

    border: 1px solid #dfe3eb;
    border-radius: 12px;

    color: #253149;
    background: #ffffff;

    font: inherit;
    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.login-form input:focus {
    border-color: #7187e7;

    box-shadow:
        0 0 0 4px
        rgba(91, 112, 220, .09);
}

.login-form input::placeholder {
    color: #b1b7c3;
}

.password-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.password-heading a {
    margin-bottom: 8px;

    color: #6177d9;
    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.remember {
    display: flex !important;
    align-items: center;
    gap: 8px;

    width: fit-content;
    margin: -2px 0 20px;

    color: #6e778a !important;
    font-weight: 500 !important;

    cursor: pointer;
}

.remember input {
    width: 15px;
    height: 15px;

    accent-color: #596fdb;
}

.login-button {
    width: 100%;
    height: 52px;

    border: 0;
    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #7047df,
            #426fe1
        );

    font: inherit;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 12px 28px
        rgba(80, 83, 205, .20);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 15px 32px
        rgba(80, 83, 205, .27);
}

.register-row {
    margin-top: 23px;

    text-align: center;

    color: #858d9e;
    font-size: 13px;
}

.register-row a {
    margin-left: 4px;

    color: #5b6fd6;
    font-weight: 800;

    text-decoration: none;
}

.terms {
    margin: 25px auto 0;

    color: #a0a6b2;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.terms a {
    color: #727d98;
}


/* FOOTER */

footer {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 max(32px, calc((100% - 1380px) / 2));

    color: #8992a7;
    background: #17233f;

    font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

    .account-page {
        grid-template-columns: 1fr;
    }

    .intro-panel {
        display: none;
    }

    .login-panel {
        min-height: calc(100vh - 140px);
        padding: 55px 30px;
    }

    .mobile-brand {
        display: block;
    }

    .mobile-free {
        display: block;

        margin: -10px 0 26px;
        padding: 12px 14px;

        border-radius: 12px;

        color: #5c4bb7;
        background: #f3f0ff;

        font-size: 12px;
        font-weight: 750;
        text-align: center;
    }

}


@media (max-width: 650px) {

    .site-header {
        height: 68px;
    }

    .header-inner {
        width: calc(100% - 32px);
    }

    .brand-subtitle {
        display: none;
    }

    .brand-mark {
        font-size: 25px;
    }

    .back-home {
        padding: 8px 0;
        font-size: 12px;
    }

    .login-panel {
        align-items: flex-start;

        min-height: calc(100vh - 68px);

        padding: 40px 22px 55px;
    }

    .mobile-brand {
        display: none;
    }

    .login-card h2 {
        font-size: 26px;
    }

    footer {
        display: none;
    }

}


/* ============================================================
   Free campaign highlight
   ============================================================ */

.free-announcement {
    position: relative;
    z-index: 200;

    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #653fe2,
            #3f6fe6,
            #24a486
        );

    box-shadow:
        0 4px 18px
        rgba(57, 66, 150, .16);
}

.free-announcement-inner {
    width: min(1380px, calc(100% - 64px));
    min-height: 56px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 22px;
}

.free-announcement-badge {
    padding: 6px 11px;

    border:
        1px solid
        rgba(255, 255, 255, .30);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, .16);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
}

.free-announcement-text {
    display: flex;
    align-items: center;

    gap: 14px;

    font-size: 14px;
}

.free-announcement-text strong {
    font-size: 16px;
    font-weight: 900;
}

.free-announcement-text span {
    opacity: .94;
}

.free-announcement-note {
    padding-left: 22px;

    border-left:
        1px solid
        rgba(255, 255, 255, .32);

    font-size: 12px;
    font-weight: 600;

    opacity: .92;
}


/* ---------- Stronger free card ---------- */

.free-box {
    max-width: 540px;

    display: flex;
    gap: 18px;
    align-items: center;

    padding: 27px 29px;

    border:
        2px solid
        rgba(106, 80, 225, .25);

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, .97),
            rgba(241, 238, 255, .96)
        );

    box-shadow:
        0 18px 45px
        rgba(82, 70, 176, .14);
}

.free-icon {
    width: 50px;
    height: 50px;

    border-radius: 15px;

    font-size: 22px;

    background:
        linear-gradient(
            135deg,
            #7550e6,
            #4c76e8
        );
}

.free-box strong {
    display: block;

    margin: 0 0 7px;

    color: #382984;

    font-size: 19px;
    font-weight: 900;
}

.free-box p {
    margin: 0;

    color: #53617a;

    font-size: 15px;
    line-height: 1.75;
}

.free-box p b {
    color: #4935a6;
    font-weight: 900;
}


/* 新增公告列後修正頁面高度 */

.account-page {
    min-height: calc(100vh - 196px);
}


/* ============================================================
   Free campaign mobile
   ============================================================ */

@media (max-width: 700px) {

    .free-announcement-inner {
        width: calc(100% - 28px);
        min-height: 62px;

        justify-content: center;

        gap: 10px;
    }

    .free-announcement-badge,
    .free-announcement-note {
        display: none;
    }

    .free-announcement-text {
        width: 100%;

        flex-direction: column;
        align-items: center;

        gap: 3px;

        text-align: center;
    }

    .free-announcement-text strong {
        font-size: 14px;
    }

    .free-announcement-text span {
        font-size: 12px;
    }

    .login-panel {
        min-height:
            calc(
                100vh - 130px
            );
    }

}


/* ============================================================
   Login status message
   ============================================================ */

.login-message {
    min-height: 22px;
    margin: -4px 0 8px;

    font-size: 12px;
    line-height: 1.5;
}

.login-message.error {
    color: #d23f4d;
}

.login-message.success {
    color: #17825f;
}

.login-button:disabled {
    opacity: .68;
    cursor: default;
}

.social-link {
    text-decoration: none;
}
