* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

.container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    background: url(/static/images/pages/all/loginback.png);
    background-position: top;
    background-size: 100%;
    background-repeat: no-repeat;
}

/* Background elements */
.background-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 812px;
    background: linear-gradient(180deg, #FB6C6A 0%, #FFFFFF 27.88%);
    z-index: 1;
}

.bottom-bar-bg {
    position: absolute;
    top: -2px;
    left: 0;
    width: 375px;
    height: 814px;
    z-index: 2;
}

    .bottom-bar-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Header */
.header {
    position: relative;
    z-index: 10;
    padding-top: 117px;
    display: flex;
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    position: relative;
    width: 43.06px;
    height: 50.48px;
}

.logo-main {
    position: absolute;
    top: 8.82px;
    left: 0;
    width: 43.06px;
    height: 41.66px;
}

.logo-accent-1 {
    position: absolute;
    top: 24.51px;
    left: 20.38px;
    width: 3.16px;
    height: 10.5px;
}

.logo-accent-2 {
    position: absolute;
    top: 0;
    left: 17.86px;
    width: 10.78px;
    height: 7.52px;
}

.logo-accent-3 {
    position: absolute;
    top: 27.88px;
    left: 13.82px;
    width: 3.64px;
    height: 3.76px;
}

.logo-accent-4 {
    position: absolute;
    top: 27.88px;
    left: 26.48px;
    width: 3.64px;
    height: 3.76px;
}

.app-title {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 43.17px;
    letter-spacing: 4.32px;
    color: #000024;
    margin-left: 15px;
}

/* Form container */
.form-container {
    position: relative;
    z-index: 10;
    padding: 72px 31px 0;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Input groups */
.input-group {
    width: 100%;
    margin-bottom: 14px;
}

.input-field {
    position: relative;
    width: 100%;
    height: 48px;
    background: #F8F8F8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.input-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #202020;
    outline: none;
    width: 100%;
}

    .form-input::placeholder {
        color: #202020;
    }

    .form-input.optional::placeholder {
        color: #CCCCCC;
    }

    .form-input.captcha-input::placeholder {
        color: #CCCCCC;
        font-size: 14px;
        line-height: 24px;
    }

.input-action {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.verification-code-btn {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #202020;
    cursor: pointer;
    white-space: nowrap;
}

.optional-label {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #D9D9D9;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.captcha-image {
    width: 92px;
    height: 37px;
    flex-shrink: 0;
}

    .captcha-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Agreement section */
.agreement-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding: 0 10px;
}

.agreement-left {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox {
    position: relative;
    width: 13.99px;
    height: 13.99px;
}

.checkbox-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 13.99px;
    height: 13.99px;
}

.checkbox-check {
    position: absolute;
    top: 4.36px;
    left: 2.94px;
    width: 8.33px;
    height: 5.96px;
}

.agreement-text {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #CCCCCC;
}

.forgot-password {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #CCCCCC;
    cursor: pointer;
}

/* Register button */
.register-btn {
    width: 100%;
    height: 48px;
    background: #F24B48;
    border: none;
    border-radius: 10px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 16px;
    line-height: 22px;
    color: #FFFFFF;
    cursor: pointer;
    margin-top: 28px;
    box-shadow: 0px 2px 9px rgba(50, 100, 237, 0.34);
    transition: all 0.3s ease;
}

    .register-btn:hover {
        background: #e63e3b;
        transform: translateY(-1px);
    }

    .register-btn:active {
        transform: translateY(0);
    }

/* Login link */
.login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 22px;
    cursor: pointer;
}

.login-text {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 18px;
    color: #5A5B5C;
}

.arrow-icon {
    width: 18px;
    height: 18px;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .container {
        width: 100vw;
        min-height: 100vh;
    }

    .background-gradient {
        width: 100vw;
        min-height: 100vh;
    }

    .bottom-bar-bg {
        width: 100vw;
        min-height: 100vh;
    }

    .form-container {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .input-field {
        width: 90vw;
        max-width: 312px;
    }

    .register-btn {
        width: 90vw;
        max-width: 312px;
    }
}

/* Interactive states */
.input-field:focus-within {
    border-color: #F24B48;
    box-shadow: 0 0 0 2px rgba(242, 75, 72, 0.1);
}

.checkbox-container:hover .checkbox {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.verification-code-btn:hover {
    color: #F24B48;
}

.forgot-password:hover,
.login-link:hover .login-text {
    color: #F24B48;
}
