@charset "UTF-8";

/*body {*/
/*    font-family: Arial, sans-serif;*/
/*    margin: 0;*/
/*    padding: 0;*/
/*    background-image: linear-gradient(to bottom right, #6a11cb, #2575fc);*/
/*    height: 100vh;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*}*/
/*.container {*/
/*    background-color: rgba(255, 255, 255, 0.9);*/
/*    padding: 40px;*/
/*    border-radius: 15px;*/
/*    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);*/
/*    width: 360px;*/
/*    backdrop-filter: blur(10px);*/
/*}*/
/*.form-container {*/
/*    position: relative;*/
/*    height: 320px;*/
/*}*/
/*.form-container form {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    transition: all 0.5s ease;*/
/*}*/
/*.register-form {*/
/*    opacity: 0;*/
/*    transform: scale(0.9);*/
/*    z-index: 1;*/
/*}*/
/*.login-form {*/
/*    opacity: 1;*/
/*    transform: scale(1);*/
/*    z-index: 2;*/
/*}*/
/*.show-register .login-form {*/
/*    opacity: 0;*/
/*    transform: scale(0.9);*/
/*    z-index: 1;*/
/*}*/
/*.show-register .register-form {*/
/*    opacity: 1;*/
/*    transform: scale(1);*/
/*    z-index: 2;*/
/*}*/
/*input {*/
/*    width: 100%;*/
/*    padding: 12px;*/
/*    margin: 10px 0;*/
/*    border: none;*/
/*    border-radius: 8px;*/
/*    background-color: rgba(200, 200, 200, 0.2);*/
/*    box-sizing: border-box;*/
/*    padding-left: 40px;*/
/*}*/
/*input:focus {*/
/*    outline: none;*/
/*    background-color: rgba(200, 200, 200, 0.4);*/
/*}*/
/*.input-icon {*/
/*    position: absolute;*/
/*    left: 15px;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    color: #666;*/
/*}*/
/*button {*/
/*    width: 100%;*/
/*    padding: 12px;*/
/*    background-image: linear-gradient(to right, #6a11cb, #2575fc);*/
/*    color: white;*/
/*    border: none;*/
/*    border-radius: 8px;*/
/*    cursor: pointer;*/
/*}*/
/*button:hover {*/
/*    background-image: linear-gradient(to right, #4a0db9, #1a5fe6);*/
/*}*/
/*.toggle-link {*/
/*    text-align: center;*/
/*    margin-top: 20px;*/
/*}*/
/*.toggle-link a {*/
/*    text-decoration: none;*/
/*    color: #2575fc;*/
/*}*/
/*.error-message {*/
/*    color: red;*/
/*    font-size: 12px;*/
/*    margin-bottom: 10px;*/
/*}*/
/* 自定义样式和动画 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

/* 白橙色配色方案 */
:root {
    --primary: #ff8f41; /* 橙色 */
    --secondary: #ff7128; /* 深橙色 */
    --accent: #fb923c; /* 浅橙色 */
    --focus: #ea580c; /* 输入框聚焦边框颜色 */
    --text: #431407;
    --light: #fff7ed;
}

/* 容器激活时的样式 */
.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

/* 默认状态下的样式 */
.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
    opacity: 1;
    transition: all 0.6s ease-in-out;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
    transition: all 0.6s ease-in-out;
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.overlay {
    background: var(--primary);
    background: linear-gradient(to right, var(--primary), var(--secondary));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-left {
    transform: translateX(-20%);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

/* 表单容器的基础样式 */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    background-color: #ffffff;
}

/* 按钮样式 */
.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
    border-width: 1px;
}

/* 输入框样式 */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    z-index: 10;
}

.form-input {
    padding-left: 2.5rem !important;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.form-input:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

/* 动画定义 */
@keyframes show {
    0%, 49.99% {
        opacity: 0;
        z-index: 1;
    }
    50%, 100% {
        opacity: 1;
        z-index: 5;
    }
}

/* 装饰元素 */
.decoration {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
}

.decoration-1 {
    top: 10%;
    left: 5%;
    transform: rotate(15deg);
    color: var(--accent);
    font-size: 5rem;
}

.decoration-2 {
    bottom: 10%;
    right: 5%;
    transform: rotate(-15deg);
    color: var(--primary);
    font-size: 4rem;
}

/* 响应式调整：小屏幕下单列布局 */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .form-container {
        width: 100%;
        position: absolute;
    }

    .sign-in-container {
        width: 100%;
        z-index: 2;
    }

    .sign-up-container {
        width: 100%;
        z-index: 1;
        opacity: 0;
        transform: translateX(0) !important;
    }

    .overlay-container {
        display: none;
    }

    .container.right-panel-active .sign-in-container {
        transform: translateX(0) !important;
        opacity: 0;
        z-index: 1;
    }

    .container.right-panel-active .sign-up-container {
        transform: translateX(0) !important;
        opacity: 1;
        z-index: 5;
        animation: none;
    }

    .mobile-switch {
        display: block;
        margin-top: 1.5rem;
        text-align: center;
        color: var(--primary);
        font-weight: bold;
        cursor: pointer;
    }

    .mobile-switch:hover {
        text-decoration: underline;
    }

    .desktop-switch {
        display: none;
    }

    .form-content {
        padding: 2rem;
    }

    .decoration {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-switch {
        display: none;
    }

    .desktop-switch {
        display: flex;
    }
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 15px;
}
.toggle-link {
    text-align: center;
    margin-top: 20px;
}
.toggle-link a {
    text-decoration: none;
    color: #2575fc;
}
.toast-container {
    position: fixed;
    left: 50%;
    top: 10%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    text-align: center;
}
.toast {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
}
.toast.show {
    opacity: 1;
    transform: scale(1);
}
.form-input{
    border-radius:8px !important;
}