:root {
    /* 颜色 */
    --white: #fff;
    --gray: #333;
    --blue: #22A3FF;
    --blue-r: #60D7FF;
    --lightblue: #33E4FF;

    /* 圆角 */
    --button-radius: 0.7rem;

    /* 大小 */
    --max-width: 758px;
    --max-height: 420px;

    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    /*background: #e7e7e7 url("../images/login图.svg")  no-repeat;*/
    background: rgb(13,20,34);
    background-position: center; /* Center the background */

    /*background-size: cover;*/
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure no scrollbars */
}
/* 主体 div 样式 */
.container {
    background-color: rgba(231, 231, 231, 0.18);
    border-radius: 0.7rem;
    box-shadow: 0 0.9rem 1.7rem rgba(255, 255, 255, 0.25),
    0 0.7rem 0.7rem rgba(0, 0, 0, 0.22);
    height: 420px;
    max-width: 750px;
    overflow: hidden;
    position: relative;
    width: 100%;
}
/* 登录、注册框部分 */
.container-form {
    height: 100%;
    position: absolute;
    top: 0;
    transition: all 0.6s ease-in-out;
}
/* 登录框 - 默认层级高 */
.container-signin {
    left: 0;
    width: 50%;
    z-index: 2;
}
/* 注册框 - 默认层级低 - 透明度 0 */
.container-signup {
    left: 0;
    opacity: 0;
    width: 50%;
    z-index: 1;
}
/* 表单样式 */
.form {
    background-color: #e7e7e7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 3rem;
    height: 100%;
    text-align: center;
}
.form-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    /*margin-bottom: 1.25rem;*/
}
.link {
    color: #333;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    text-decoration: none;
}
.input {
    width: 100%;
    background-color: #fff;
    padding: 0.9rem 0.9rem;
    margin: 0.5rem 0;
    border: none;
    outline: none;
}
.btn {
    background-color: var(--blue);
    background-image: linear-gradient(90deg, var(--blue) 0%, var(--lightblue) 74%);
    border-radius: 20px;
    border: 0.2px solid var(--blue-r);
    color: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.1rem;
    padding: 0.9rem 4rem;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}
.form>.btn {
    margin-top: 1.5rem;
}
.btn:active {
    transform: scale(0.95);
}
/* ---------- 叠加部分样式 ------------- */
.container-overlay {
    height: 100%;
    left: 50%;
    overflow: hidden;
    position: absolute;
    top: 0;
    transition: transform 0.6s ease-in-out;
    width: 50%;
    z-index: 100;
}
.overlay {
    width: 200%;
    height: 100%;
    position: relative;
    left: -100%;
    background: url("../images/login图.svg") no-repeat;
    background-position: -63px -63px;
    transition: transform 0.6s ease-in-out;
    transform: translateX(0);
}
.overlay-panel {
    height: 100%;
    width: 50%;
    position: absolute;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}
.overlay-left {
    transform: translateX(0%);
}
.overlay-right {
    right: 0;
    transform: translateX(0);
}
/* 设计激活时叠加层的位置 */

.panel:active .overlay-left {
    transform: translateX(0);
}
.panel-active .container-overlay {
    transform: translateX(-100%);
}
.panel-active .overlay {
    transform: translateX(50%);
}
/* 设置激活时，登录注册层的位置和透明度 */
.panel-active .container-signin {
    transform: translateX(100%);
}
.panel-active .container-signup {
    opacity: 1;
    z-index: 5;
    transform: translateX(100%);
}