* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #20283a;
    background:
        radial-gradient(circle at 10% 20%, #eef2ff 0, transparent 30%),
        radial-gradient(circle at 90% 75%, #ecfdf5 0, transparent 28%),
        #f8fafc;
    font-family:
        Inter,
        "Noto Sans TC",
        "Microsoft JhengHei",
        sans-serif;
}

.site-header {
    height: 82px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid #e8ebf2;
    backdrop-filter: blur(16px);
}

.brand {
    text-decoration: none;
}

.brand > div {
    font-size: 29px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2px;
}

.brand-ct {
    color: #17213a;
}

.brand-art {
    background: linear-gradient(
        90deg,
        #7c3aed,
        #2563eb,
        #10b981
    );
    -webkit-background-clip: text;
    color: transparent;
}

.brand small {
    display: block;
    margin-top: 7px;
    color: #8991a3;
    font-size: 10px;
    letter-spacing: .7px;
}

.back-link {
    color: #566074;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: #2563eb;
}

.free-banner {
    min-height: 49px;
    padding: 10px 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: white;
    background: linear-gradient(
        100deg,
        #6d4aff,
        #3578ed,
        #19a58b
    );
    box-shadow: 0 7px 25px rgba(60,90,180,.16);
}

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

.free-banner span {
    font-size: 13px;
    opacity: .92;
}

.register-page {
    width: min(1060px, 90%);
    min-height: calc(100vh - 205px);
    margin: 0 auto;
    padding: 58px 0;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 90px;
}

.intro {
    padding: 20px 0;
}

.kicker {
    margin-bottom: 16px;
    color: #6576d7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.intro h1 {
    margin: 0 0 20px;
    color: #20283a;
    font-size: clamp(38px, 4vw, 55px);
    line-height: 1.08;
    letter-spacing: -2.2px;
}

.intro h1 span {
    background: linear-gradient(
        90deg,
        #7052dd,
        #3478e9,
        #19a58b
    );
    -webkit-background-clip: text;
    color: transparent;
}

.intro > p {
    max-width: 430px;
    margin-bottom: 35px;
    color: #737d91;
    font-size: 15px;
    line-height: 1.9;
}

.feature {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 17px 0;
}

.feature > span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #3474db;
    background: #eaf1ff;
    border-radius: 50%;
    font-weight: 900;
}

.feature strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.feature small {
    color: #9299a8;
    font-size: 12px;
}

.register-card {
    padding: 39px 42px 35px;
    background: rgba(255,255,255,.96);
    border: 1px solid #e8ebf2;
    border-radius: 25px;
    box-shadow: 0 24px 70px rgba(39,52,94,.11);
}

.card-title {
    margin-bottom: 27px;
}

.card-title h2 {
    margin: 0 0 8px;
    font-size: 26px;
    letter-spacing: -.8px;
}

.card-title p {
    margin: 0;
    color: #9299a8;
    font-size: 13px;
}

form > label:not(.agreement) {
    display: block;
    margin: 18px 0 8px;
    color: #485267;
    font-size: 13px;
    font-weight: 800;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: #252d3e;
    background: #fbfcfe;
    border: 1px solid #dfe3eb;
    border-radius: 11px;
    outline: none;
    font-size: 14px;
    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;
}

input:focus {
    background: white;
    border-color: #7799ed;
    box-shadow: 0 0 0 4px rgba(75,120,230,.10);
}

.email-row {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 9px;
}

.send-code {
    border: 0;
    border-radius: 11px;
    color: #315bb9;
    background: #eaf0ff;
    font-weight: 800;
    cursor: pointer;
}

.send-code:hover:not(:disabled) {
    background: #dfe8ff;
}

.send-code:disabled {
    cursor: default;
    opacity: .68;
}

.code-input {
    letter-spacing: 5px;
    font-weight: 800;
}

.code-help {
    margin-top: 7px;
    color: #9ba2b1;
    font-size: 11px;
}

.field-message {
    min-height: 17px;
    margin-top: 7px;
    font-size: 12px;
}

.success {
    color: #11845f;
}

.error {
    color: #d33f49;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 65px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 5px;
    transform: translateY(-50%);
    color: #65718a;
    background: none;
    border: 0;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.agreement {
    margin: 22px 0 13px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #747e91;
    font-size: 12px;
    line-height: 1.6;
}

.agreement input {
    margin-top: 3px;
}

.agreement a,
.login-link a {
    color: #416dd5;
    font-weight: 800;
    text-decoration: none;
}

.form-message {
    min-height: 20px;
    margin-bottom: 7px;
    font-size: 12px;
}

.register-button {
    width: 100%;
    height: 51px;
    color: white;
    background: linear-gradient(
        100deg,
        #6656dd,
        #3677e5,
        #249c8a
    );
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(62,104,214,.18);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.register-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.register-button:disabled {
    opacity: .65;
    cursor: default;
}

.login-link {
    margin-top: 23px;
    color: #8a92a2;
    text-align: center;
    font-size: 12px;
}

footer {
    padding: 24px;
    color: #a1a8b5;
    text-align: center;
    font-size: 11px;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 20px;
    display: grid;
    place-items: center;
    background: rgba(20,27,45,.55);
    backdrop-filter: blur(7px);
}

.modal-card {
    width: min(410px, 100%);
    padding: 40px;
    text-align: center;
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0,0,0,.18);
}

.success-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    color: white;
    background: #20a779;
    border-radius: 50%;
    font-size: 27px;
    font-weight: 900;
}

.modal-card h2 {
    margin: 0 0 12px;
}

.modal-card p {
    margin: 0 0 25px;
    color: #7c8596;
    font-size: 13px;
    line-height: 1.8;
}

.modal-button {
    height: 48px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: #3974df;
    border-radius: 11px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

@media (max-width: 850px) {
    .register-page {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 38px 0;
    }

    .intro {
        text-align: center;
    }

    .intro > p {
        margin-left: auto;
        margin-right: auto;
    }

    .feature {
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .site-header {
        height: 72px;
        padding: 0 20px;
    }

    .brand small {
        display: none;
    }

    .free-banner {
        gap: 3px;
        flex-direction: column;
    }

    .register-page {
        width: calc(100% - 28px);
    }

    .intro h1 {
        font-size: 39px;
    }

    .register-card {
        padding: 29px 20px;
        border-radius: 20px;
    }

    .email-row {
        grid-template-columns: 1fr;
    }

    .send-code {
        height: 44px;
    }
}
