﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(145deg, #f4f8fe 0%, #eef2f7 100%);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, 'Noto Sans', sans-serif;
    padding: 20px 16px 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-card {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.form-container {
    padding: 34px 26px 42px;
}

.brand-header {
    margin-bottom: 32px;
}

    .brand-header h1 {
        font-size: 32px;
        font-weight: 800;
        background: linear-gradient(115deg, #1a2f3f, #1f5e7e);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        letter-spacing: -0.5px;
        margin-bottom: 8px;
    }

    .brand-header p {
        font-size: 14px;
        color: #5f6f87;
        font-weight: 450;
    }

.input-group {
    margin-bottom: 24px;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: #1e2f3e;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.phone-wrapper, .code-wrapper, .captcha-wrapper {
    display: flex;
    align-items: center;
    background: #f3f6fc;
    border-radius: 32px;
    border: 1px solid #e2ecf5;
    transition: all 0.2s;
    padding: 0 8px 0 20px;
}

    .phone-wrapper:focus-within, .code-wrapper:focus-within, .captcha-wrapper:focus-within {
        border-color: #2c8eb3;
        background: white;
        box-shadow: 0 0 0 3px rgba(44, 142, 179, 0.1);
    }

.country-code {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 16px;
    color: #1a2c3c;
    border-right: 1px solid #cddfea;
    padding-right: 14px;
    margin-right: 14px;
}

.input-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 0;
    font-size: 16px;
    outline: none;
    color: #0f212f;
    font-weight: 500;
}

    .input-field::placeholder {
        color: #9fb2c4;
        font-weight: 450;
    }

.code-wrapper {
    padding-right: 8px;
}

.get-code-btn {
    background: #eef2fa;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: #1e6f8f;
    padding: 8px 18px;
    border-radius: 40px;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 0.3px;
}

    .get-code-btn:active {
        transform: scale(0.96);
        background: #e0e9f3;
    }

    .get-code-btn.disabled {
        color: #96abbb;
        background: #f0f4f9;
        pointer-events: none;
        opacity: 0.7;
    }

/* 图片验证码专用行 */
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-wrapper {
    flex: 2;
    padding-right: 12px;
}

.captcha-img-box {
    flex: 1.2;
    background: #f0f4f9;
    border-radius: 32px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #e2ecf5;
    transition: 0.1s;
    overflow: hidden;
}

    .captcha-img-box canvas {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 32px;
        background: #fef9e6;
    }

.refresh-captcha {
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
    padding: 8px 6px;
    border-radius: 40px;
    transition: 0.1s;
    color: #2c7a9e;
}

    .refresh-captcha:active {
        transform: rotate(15deg);
    }

.agreement {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 28px 0 30px;
    font-size: 13px;
    color: #4a5b72;
}

.checkbox-custom {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

    .checkbox-custom input {
        width: 18px;
        height: 18px;
        margin-right: 8px;
        accent-color: #1f7b9e;
        cursor: pointer;
    }

.agreement a {
    color: #1f7b9e;
    text-decoration: none;
    font-weight: 600;
}

.register-btn {
    width: 100%;
    background: linear-gradient(98deg, #186f8f, #2492b6);
    border: none;
    border-radius: 60px;
    padding: 16px 20px;
    color: white;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 20px -8px rgba(31, 111, 143, 0.4);
    margin-bottom: 28px;
}

    .register-btn:active {
        transform: scale(0.97);
        background: linear-gradient(98deg, #135c78, #1d7d9e);
    }

.benefits-section {
    background: #fafdff;
    border-radius: 32px;
    padding: 22px 20px;
    margin-top: 18px;
    border: 1px solid #e7f0f8;
}

.section-title {
    font-size: 17px;
    font-weight: 800;
    color: #113e52;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

    .section-title span {
        background: #feeedb;
        padding: 4px 12px;
        border-radius: 40px;
        font-size: 11px;
        color: #c4651a;
        font-weight: 700;
    }

.benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.benefit-item {
    flex: 1;
    text-align: center;
    background: white;
    border-radius: 28px;
    padding: 12px 6px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.03);
}

.benefit-icon {
    font-size: 30px;
    margin-bottom: 6px;
    display: block;
}

.benefit-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #173e51;
    margin-bottom: 5px;
}

.benefit-item p {
    font-size: 11px;
    color: #68839b;
}

.join-tag {
    background: #eef4fa;
    border-radius: 60px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #145e7a;
    text-align: center;
}

.inviter-area {
    background: #f2f6fb;
    border-radius: 28px;
    padding: 14px 20px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border: 1px solid #e1edf7;
}

.inviter-label {
    font-size: 14px;
    font-weight: 600;
    color: #1f4c64;
    display: flex;
    align-items: center;
    gap: 6px;
}

.inviter-name {
    font-weight: 800;
    font-size: 16px;
    background: #ffffffcc;
    padding: 5px 18px;
    border-radius: 40px;
    color: #1b6a87;
}

.note-text {
    font-size: 11px;
    color: #7b8ea6;
    margin-top: 12px;
    text-align: center;
}

.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #1f2f3cdf;
    backdrop-filter: blur(12px);
    color: white;
    padding: 12px 24px;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 1000;
    text-align: center;
    max-width: 85vw;
    white-space: normal;
}

    .toast-msg.show {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

@media (max-width: 480px) {
    .form-container {
        padding: 24px 20px 32px;
    }

    .captcha-row {
        flex-wrap: wrap;
    }

    .captcha-img-box {
        flex: 1;
        min-width: 100px;
    }
}
