@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;1,500&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}
body{
    height: 100vh;
    width: 100%;
    background: #000;
    overflow-x: hidden;
    box-sizing: border-box;
}
.background{
    background: url(https://i.postimg.cc/KYgPzB0x/e37bee98-c3ff-440e-a00a-e6a1fd6057be.jpg) no-repeat;
    background-position: center;
    background-size:cover ;
    height: 100vh;
    width: 100%;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 13%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;

}
.navbar a{
    position: relative;
    font-size: 20px;
    color: #fff;
    margin-right: 30px;
    text-decoration: none;
}
.navbar a::after{
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    bottom: -5px;
    border-radius: 5px;
    transform: translateY(10px);
    opacity: 0;
    transition: .5s ease;
}
.navbar a:hover:after{
    transform: translateY(0);
    opacity: 1;
}
.search-bar{
    width: 250px;
    height: 45px;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
}
.search-bar input{
    width: 100%;
    background-color: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    padding-left: 10px;
}
.search-bar button{
    width: 40px;
    height: 100%;
    background: transparent;
    outline: none;
    border: none;
    color: #fff;
    cursor: pointer;
}
.search-bar input::placeholder{
    color: #fff;
}
.search-bar button i{
    font-size: 22px;
}
.container{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 85%;
    max-width: 1200px;
    min-width: 280px;
    height: 600px;
    margin-top: 20px;
    background: url(https://i.postimg.cc/k5hHrQBC/f5ecbd0b-ef0f-4d82-beeb-47a5b5b3e6d0.jpg) no-repeat;
    background-position: center;
    background-size:cover ;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}
.logo img{
    width: 50px;
    height: 50px;
}
.item{
    position: absolute;
    top: 0;
    left: 0;
    width: 58%;
    height: 100%;
    color: #fff;
    background: transparent;
    padding: 80px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
.item .logo{
    color: #9900ff;
    font-size: 30px;
}
.text-item h2{
    font-size: 40px;
    line-height: 1;
}
.text-item p{
    font-size: 16px;
    margin: 20px 0;
}
.social-icon a i{
    color: #fff;
    font-size: 24px;
    margin-left: 10px;
    cursor: pointer;
    transition: .5s ease;
}
.social-icon a:hover i{
    transform: scale(1.2);
}
.container .login-section{
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 58%);
    height: 100%;
    color: #fff;
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.login-section .form-box{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    
}
.login-section .form-box.register{
    transform: translateX(100%);
    transition: transform .6s ease;
}
.login-section.active .form-box.register{
    transform: translateX(0);
}

.login-section .form-box.login{
    transform: translateX(0);
    transition: transform .6s ease;
}
.login-section.active .form-box.login{
    transform: translateX(-100%);
}



.login-section .form-box h2{
    text-align: center;
    font-size: 25px;
}

.form-box .input-box{
    width: 100%;
    max-width: 340px;
    height: 50px;
    border-bottom: 2px solid#fff;
    margin: 30px auto;
    position: relative;
}
.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    padding-right: 28px;


}
.input-box label{
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 600px;
    pointer-events: none;
    transition: .5s ease;

}
.input-box .icon{
    position: absolute;
    top: 13px;
    right: 0;
    font-size: 19px;
}
.input-box input:focus~ label,
.input-box input:valid~ label{
    top: -5px;
}
.remember-password{
    font-size: 14px;
    font-weight: 500;
    margin: -15px 0 15px ;
    display: flex;
    justify-content: space-between;
}
.remember-password label input{
    accent-color: #fff;
    margin-right: 3px;

}
.remember-password a{
    color: #fff;
    text-decoration: none;
}
.remember-password a:hover{
    text-decoration: underline;
}
.attention{
    font-size: 12px;
    font-weight: 500;
    margin: -5px 0 5px ;
    display: flex;
    justify-content: space-between;
}
.error-message{
    color: #ff0000;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}
.btn{
    background: #fff;
    width: 100%;
    height: 45px;
    outline: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #cf2df7;
    font-size: 16px;
    color: #fff;
    box-shadow: rgba(0,0,0,0.4);

}
.create-account{
    font-size: 14.5px;
    text-align: center;
    margin: 25px;
}
.create-account p a{
    color: #fff;
    font-weight: 600px;
    text-decoration: none;
}
.create-account p a:hover{
    text-decoration: underline;
}
.already-account{
    font-size: 14.5px;
    text-align: center;
    margin: 25px;
}
.already-account p a{
    color: #fff;
    font-weight: 600px;
    text-decoration: none;
}
.already-account p a:hover{
    text-decoration: underline;
}

/* 移动端弹窗样式 */
.mobile-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.mobile-popup.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-popup-content {
    background: linear-gradient(135deg, rgba(153, 0, 255, 0.9), rgba(207, 45, 247, 0.9));
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mobile-popup-header h2 {
    color: #fff;
    font-size: 24px;
    margin: 0;
}

.mobile-back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Cloudflare Turnstile full-screen overlay */
.cf-turnstile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cf-turnstile-panel {
    background: #ffffff00;
    padding: 20px;
    max-width: 420px;
    width: 100%;
}

@media (prefers-color-scheme: dark) {
    .cf-turnstile-panel { background: #121212; border: 1px solid #232323; }
}

/* 响应式设计 - 大屏幕 */
@media screen and (min-width: 1400px) {
    .container {
        width: 80%;
        max-width: 1400px;
    }
}

/* 响应式设计 - 中等屏幕 */
@media screen and (max-width: 1200px) {
    .container {
        width: 90%;
        min-width: 320px;
    }
    
    .item {
        padding: 60px 50px;
    }
    
    .text-item h2 {
        font-size: 36px;
    }
}

/* 响应式设计 - 平板设备 */
@media screen and (max-width: 1024px) {
    .container {
        width: 95%;
        min-width: 320px;
        height: 550px;
    }
    
    .item {
        padding: 50px 40px;
    }
    
    .text-item h2 {
        font-size: 32px;
    }
    
    .form-box .input-box {
        max-width: 300px;
    }
}

/* 响应式设计 - 小桌面屏幕 */
@media screen and (max-width: 900px) and (min-width: 769px) {
    .container {
        width: 98%;
        min-width: 320px;
        height: 500px;
    }
    
    .item {
        padding: 40px 30px;
        width: 55%;
    }
    
    .container .login-section {
        width: calc(100% - 55%);
    }
    
    .text-item h2 {
        font-size: 28px;
    }
    
    .text-item p {
        font-size: 14px;
    }
    
    .form-box .input-box {
        max-width: 280px;
    }
    
    .form-box h2 {
        font-size: 20px;
    }
    
    .already-account{
        margin-top: -4px;
    }

}

/* 响应式设计 - 移动端 */
@media screen and (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 25px 13%;
        background: transparent;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
    }
    
    .navbar a {
        position: relative;
        font-size: 20px;
        color: #fff;
        margin-right: 30px;
        text-decoration: none;
    }
    
    .navbar a::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #fff;
        bottom: -5px;
        border-radius: 5px;
        transform: translateY(10px);
        opacity: 0;
        transition: .5s ease;
    }
    
    .navbar a:hover:after {
        transform: translateY(0);
        opacity: 1;
    }
    
    .background {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
    }
    
    body {
        background: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
    .container {
        position: static;
        width: 95%;
        max-width: none;
        min-width: 280px;
        height: auto;
        min-height: 500px;
        margin: 20px auto;
        display: flex;
        flex-direction: column;
        transform: none;
        left: auto;
        top: auto;
        align-items: stretch;
        justify-content: flex-start;
    }
    
    .item {
        display: none;
    }
    
    .text-item h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .text-item p {
        font-size: 14px;
        margin: 15px 0;
    }
    
    .social-icon {
        margin-top: 20px;
    }
    
    .social-icon a i {
        font-size: 20px;
        margin: 0 8px;
    }
    
    .container .login-section {
        position: static;
        width: 100% !important;
        height: 100%;
        backdrop-filter: blur(15px);
        border-radius: 20px;
        overflow: visible;
        top: auto;
        right: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 0;
    }
    
    .login-section .form-box {
        position: relative;
        padding: 30px 20px;
    }
    
    .login-section .form-box.register {
        transform: translateX(0);
        display: none;
    }
    
    .login-section.active .form-box.register {
        display: flex;
        transform: translateX(0);
    }
    
    .login-section .form-box.login {
        transform: translateX(0);
        display: flex;
    }
    
    .login-section.active .form-box.login {
        display: none;
        transform: translateX(0);
    }
    
    .form-box .input-box {
        width: 100%;
        max-width: 320px;
        margin: 25px auto;
    }
    
    .form-box h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .btn {
        height: 50px;
        font-size: 16px;
        margin: 20px 0;
    }
    
    .create-account, .already-account {
        margin: 20px 0;
        font-size: 14px;
    }
}

/* 小屏幕移动设备 */
@media screen and (max-width: 480px) {
    .container {
        width: 98%;
        margin-top: 10px;
        min-width: 280px;
    }
    
    .item {
        padding: 30px 20px;
    }
    
    .text-item h2 {
        font-size: 24px;
    }
    
    .text-item p {
        font-size: 13px;
    }
    
    .form-box .input-box {
        max-width: 280px;
        margin: 20px auto;
    }
    
    .mobile-popup-content {
        padding: 25px 20px;
        width: 95%;
    }
    
    .mobile-popup-header h2 {
        font-size: 20px;
    }
}

/* 极小屏幕设备 (320px以下) */
@media screen and (max-width: 320px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 25px 13%;
        background: transparent;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
    }
    
    .navbar a {
        position: relative;
        font-size: 20px;
        color: #fff;
        margin-right: 30px;
        text-decoration: none;
    }
    
    .navbar a::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #fff;
        bottom: -5px;
        border-radius: 5px;
        transform: translateY(10px);
        opacity: 0;
        transition: .5s ease;
    }
    
    .navbar a:hover:after {
        transform: translateY(0);
        opacity: 1;
    }
    
    .background {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
    }
    
    body {
        background: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
    .container {
        position: static;
        width: 99%;
        max-width: none;
        min-width: 250px;
        margin: 10px auto;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 450px;
        transform: none;
        left: auto;
        top: auto;
    }
    
    .item {
        display: none;
    }
    
    .container .login-section {
         position: static;
         width: 100% !important;
         height: 100%;
         backdrop-filter: blur(15px);
         border-radius: 15px;
         overflow: visible;
         top: auto;
         right: auto;
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
     }
    
    .item .logo {
        font-size: 24px;
    }
    
    .text-item h2 {
        font-size: 20px;
        line-height: 1.2;
    }
    
    .text-item p {
        font-size: 12px;
        margin: 10px 0;
    }
    
    .social-icon a i {
        font-size: 18px;
        margin: 0 5px;
    }
    
    .form-box .input-box {
        max-width: 250px;
        margin: 15px auto;
        height: 45px;
    }
    
    .form-box h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .input-box input {
        font-size: 14px;
    }
    
    .input-box label {
        font-size: 14px;
    }
    
    .btn {
        height: 45px;
        font-size: 14px;
        margin: 15px 0;
    }
    
    .create-account, .already-account {
        margin: 15px 0;
        font-size: 12px;
    }
    
    .remember-password {
        font-size: 12px;
    }
    
    .attention {
        font-size: 11px;
    }
    
    .mobile-popup-content {
        padding: 20px 15px;
        width: 98%;
        border-radius: 15px;
    }
    
    .mobile-popup-header h2 {
        font-size: 18px;
    }
    
    .mobile-back-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* 超小屏幕设备 (200px以下) */
@media screen and (max-width: 200px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 25px 13%;
        background: transparent;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
    }
    
    .navbar a {
        position: relative;
        font-size: 20px;
        color: #fff;
        margin-right: 30px;
        text-decoration: none;
    }
    
    .navbar a::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #fff;
        bottom: -5px;
        border-radius: 5px;
        transform: translateY(10px);
        opacity: 0;
        transition: .5s ease;
    }
    
    .navbar a:hover:after {
        transform: translateY(0);
        opacity: 1;
    }
    
    .background {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
    }
    
    body {
        background: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }
    
    .container {
        position: static;
        width: 100%;
        max-width: none;
        min-width: 150px;
        margin: 10px auto;
        border-radius: 10px;
        height: auto;
        min-height: 350px;
        display: flex;
        flex-direction: column;
        transform: none;
        left: auto;
        top: auto;
    }
    
    .item {
        display: none;
    }
    
    .container .login-section {
         position: static;
         width: 100% !important;
         height: 100%;
         backdrop-filter: blur(15px);
         border-radius: 10px;
         overflow: visible;
         top: auto;
         right: auto;
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
     }
    
    .item .logo {
        font-size: 20px;
    }
    
    .text-item h2 {
        font-size: 16px;
        line-height: 1.1;
    }
    
    .text-item p {
        font-size: 10px;
        margin: 8px 0;
    }
    
    .social-icon a i {
        font-size: 16px;
        margin: 0 3px;
    }
    
    .login-section .form-box {
        padding: 20px 10px;
    }
    
    .form-box .input-box {
        max-width: 160px;
        margin: 12px auto;
        height: 40px;
    }
    
    .form-box h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .input-box input {
        font-size: 12px;
        padding-right: 20px;
    }
    
    .input-box label {
        font-size: 12px;
    }
    
    .input-box .icon {
        font-size: 16px;
        top: 12px;
    }
    
    .btn {
        height: 40px;
        font-size: 12px;
        margin: 12px 0;
    }
    
    .create-account, .already-account {
        margin: 12px 0;
        font-size: 10px;
    }
    
    .remember-password {
        font-size: 10px;
        margin: -12px 0 12px;
    }
    
    .attention {
        font-size: 9px;
    }
    
    .error-message {
        font-size: 11px;
    }
    
    .mobile-popup-content {
        padding: 15px 10px;
        width: 99%;
        border-radius: 10px;
    }
    
    .mobile-popup-header h2 {
        font-size: 16px;
    }
    
    .mobile-back-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* 极小屏幕设备 (150px以下) */
@media screen and (max-width: 150px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 25px 13%;
        background: transparent;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
    }
    
    .navbar a {
        position: relative;
        font-size: 20px;
        color: #fff;
        margin-right: 30px;
        text-decoration: none;
    }
    
    .navbar a::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #fff;
        bottom: -5px;
        border-radius: 5px;
        transform: translateY(10px);
        opacity: 0;
        transition: .5s ease;
    }
    
    .navbar a:hover:after {
        transform: translateY(0);
        opacity: 1;
    }
    
    .background {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: -1;
    }
    
    body {
        background: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        overflow-x: auto;
    }
    
    .container {
        position: static;
        width: 100%;
        max-width: none;
        min-width: 100px;
        margin: 10px auto;
        height: auto;
        min-height: 280px;
        border-radius: 5px;
        display: flex;
        flex-direction: column;
        transform: none;
        left: auto;
        top: auto;
    }
    
    .item {
        display: none;
    }
    
    .container .login-section {
         position: static;
         width: 100% !important;
         height: 100%;
         backdrop-filter: blur(15px);
         border-radius: 5px;
         overflow: visible;
         top: auto;
         right: auto;
         display: flex;
         flex-direction: column;
         align-items: center;
         justify-content: center;
     }
    
    .item .logo {
        font-size: 16px;
    }
    
    .text-item h2 {
        font-size: 14px;
        line-height: 1;
    }
    
    .text-item p {
        font-size: 8px;
        margin: 5px 0;
    }
    
    .social-icon a i {
        font-size: 14px;
        margin: 0 2px;
    }
    
    .login-section .form-box {
        padding: 15px 5px;
    }
    
    .form-box .input-box {
        max-width: 90px;
        margin: 10px auto;
        height: 35px;
    }
    
    .form-box h2 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .input-box input {
        font-size: 10px;
        padding-right: 15px;
    }
    
    .input-box label {
        font-size: 10px;
    }
    
    .input-box .icon {
        font-size: 14px;
        top: 10px;
    }
    
    .btn {
        height: 35px;
        font-size: 10px;
        margin: 10px 0;
    }
    
    .create-account, .already-account {
        margin: 10px 0;
        font-size: 8px;
    }
    
    .remember-password {
        font-size: 8px;
        margin: -10px 0 10px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .attention {
        font-size: 7px;
        text-align: center;
    }
    
    .error-message {
        font-size: 9px;
    }
}

