:root {
    --mobile-design-width: 750;
    --mobile-design-height: 1624;
}

.regist-frame {
    min-height: auto;
    aspect-ratio: 750 / 1624;
    background: #fff;
}

.regist-page {
    position: absolute;
    inset: 0;
    overflow: hidden;
    color: #000;
    font-family: Inter, Jost, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.regist-hero-bg,
.regist-page-bg {
    position: absolute;
    left: 0;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.regist-hero-bg {
    top: 0;
    height: 25.431%;
}

.regist-page-bg {
    top: 19.766%;
    height: 82.143%;
}

.regist-brand {
    position: absolute;
    left: 33.4667%;
    top: 5.2956%;
    width: 40%;
    height: 5.9113%;
}

.regist-brand img {
    position: absolute;
    left: 0;
    top: 0;
    width: 39%;
    height: 100%;
    object-fit: contain;
}

.regist-brand p {
    position: absolute;
    left: 39%;
    top: 15.625%;
    margin: 0;
    font-size: min(4.2667vw, 32px);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: min(.0853vw, .64px);
    text-shadow: 0 4px 4px rgba(0, 0, 0, .25);
    white-space: nowrap;
}

.regist-brand span {
    color: #ff0606;
    font-weight: 700;
}

.regist-card {
    position: absolute;
    left: 3.7333%;
    top: 23.1527%;
    width: 92.5333%;
    height: 66.5025%;
    margin: 0;
    border: 1px solid #f5f5f5;
    border-radius: 20px;
    background: rgba(255, 255, 255, .5);
    box-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}

.regist-card h1 {
    position: absolute;
    left: 0;
    top: 3.3333%;
    width: 100%;
    margin: 0;
    font-size: min(4.2667vw, 32px);
    line-height: 1.5;
    font-weight: 400;
    text-align: center;
    letter-spacing: min(.0853vw, .64px);
    text-shadow: 0 4px 4px rgba(0, 0, 0, .25);
}

.regist-field {
    position: absolute;
    left: 5.3314%;
    width: 89.3372%;
    height: 7.4074%;
    border: 0;
    border-radius: 50px;
    background: #eee9e9;
    overflow: hidden;
}

.regist-mobile { top: 11.0000%; }
.regist-password { top: 21.0000%; }
.regist-password-repeat { top: 31.0000%; }
.field-invite { top: 41.0000%; }
.regist-captcha { top: 51.0000%; }

.regist-field-icon,
.regist-code-icon {
    position: absolute;
    left: 6.6129%;
    top: 50%;
    z-index: 1;
    width: min(3.2vw, 24px);
    height: min(4.2667vw, 32px);
    color: #6f6f6f;
    transform: translateY(-50%);
    pointer-events: none;
}

.regist-code-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: min(4vw, 30px);
    line-height: 1;
    font-weight: 700;
}

.regist-field span:not(.regist-code-icon) {
    position: absolute;
    left: 15.9677%;
    top: 5.75%;
    color: #9b9898;
    font-size: min(3.2vw, 24px);
    line-height: 2.0833;
    font-weight: 400;
    pointer-events: none;
}

.regist-field input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0 8% 0 15.9677%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222;
    font: 400 min(3.2vw, 24px)/1.2 Jost, Inter, "Microsoft YaHei", Arial, sans-serif;
}

.regist-field input:focus + span,
.regist-field input:not(:placeholder-shown) + span {
    opacity: 0;
}

.regist-captcha input {
    padding-right: 37%;
}

.regist-captcha-image {
    position: absolute;
    right: 2.0968%;
    top: 50%;
    z-index: 2;
    width: 29.0323%;
    height: 72%;
    border: 0;
    border-radius: 10px;
    object-fit: cover;
    background: #d8d5d5;
    transform: translateY(-50%);
    cursor: pointer;
}

.regist-submit {
    position: absolute;
    left: 5.3314%;
    top: 64.0000%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 89.3372%;
    height: 7.4074%;
    border: 0;
    border-radius: 100px;
    background: linear-gradient(180deg, #fe5d5d 0%, #d21818 100%);
    color: #fff;
    font-size: min(3.2vw, 24px);
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
}

.regist-submit:disabled {
    cursor: default;
    opacity: .72;
}

.regist-message {
    position: absolute;
    left: 6%;
    top: 75.0000%;
    width: 88%;
    min-height: min(5.3333vw, 40px);
    margin: 0;
    color: #d21818;
    font-size: min(2.9333vw, 22px);
    line-height: 1.35;
    text-align: center;
}

.regist-message.is-success {
    color: #1865bd;
}

.regist-links {
    position: absolute;
    left: 12.1037%;
    top: 80.0000%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 75.7925%;
    color: #000;
    font-size: min(3.2vw, 24px);
    line-height: 2.0833;
    font-weight: 400;
    white-space: nowrap;
}

.regist-links a {
    color: #d21818;
    text-decoration: none;
}

.regist-links > a {
    color: #bd070f;
}

.regist-agreement {
    position: absolute;
    left: 0;
    top: 89.0000%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: min(1.6vw, 12px);
    width: 100%;
    min-height: min(7.3892vw, 56.25px);
    color: #000;
    font-size: min(3.2vw, 24px);
    line-height: 2.0833;
    font-weight: 400;
    white-space: nowrap;
}

.regist-agreement input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.regist-check {
    position: relative;
    flex: 0 0 auto;
    display: block;
    width: min(4.5333vw, 34px);
    height: min(4.5333vw, 34px);
    border: 2px solid #317bfa;
    border-radius: 5px;
    background: #fff;
}

.regist-agreement input:checked + .regist-check {
    background: #317bfa;
}

.regist-agreement input:checked + .regist-check::after {
    content: "";
    position: absolute;
    left: 27%;
    top: 12%;
    width: 36%;
    height: 58%;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.regist-agreement a {
    color: #d21818;
    text-decoration: none;
}

@media (max-width: 430px) {
    .regist-card {
        border-radius: 2.6667vw;
    }

    .regist-brand p,
    .regist-card h1 {
        font-size: 4.2667vw;
    }

    .regist-field span:not(.regist-code-icon),
    .regist-agreement,
    .regist-submit,
    .regist-links {
        font-size: 4.2vw;
    }

    .regist-field input {
        font-size: 4.2vw;
    }
}
