/* 登录页面主容器 */
.login-container {
    width: 100%;
    min-height: 100vh;
    background-color: #f1f1f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #000;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    justify-content: center;
    display: none;
    overflow-x: auto;
    z-index: 11;
}

/* Logo样式 */
.login-container .logo {
    margin-bottom: 2rem;
}

/* .logo img {
    height: 40px;
} */

/* 登录/注册切换标签 */
.auth-tabs {
    display: flex;
    /* gap: 20px; */
    margin-bottom: 8px;
    width: 100%;
    max-width: 400px;
}
.login-container form{
    padding: 0rem;
}
.tab-btn {
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.68);
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: rgba(0, 0, 0);
    font-weight: 600;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #d9d9d9;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0);
}

/* 表单容器 */
.auth-form {
    width: 100%;
    max-width: 500px;
    background: rgba(245, 245, 245, 0.02);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.auth-form.hidden {
    display: none;
}

/* ��单元素样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(0, 0, 0, 0.38);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #f1f1f1;
    border: 2px solid rgba(255, 255, 255);
    border-radius: 20px;
    color: #000;
    font-size: 16px;
    box-sizing: border-box;
    margin-bottom: 0;
}

.form-group input:focus {
    outline: none;
    border-color:  rgba(2, 198, 165, 1);
}

/* 记住密码和忘记密码 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.remember-me,
.terms {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(0, 0, 0, 0.68);
    font-size: 16px;
}



.forgot-password {
    color: rgba(0, 0, 0, 0.68);
    text-decoration: none;
    font-size: 16px;
}

.login-container input[type="checkbox"] {
    -webkit-appearance: none; /* Chrome, Safari, Edge, Opera */
    -moz-appearance: none;    /* Firefox */
    appearance: none;         /* 标准属性 */
	width: 20px;
    height: 20px;
    background-color: #fff;  /* 背景颜色 */
    border-radius: 6px;       /* 圆角 */
    position: relative;
}

       
.login-container input[type=checkbox]:checked{
    background: rgba(2, 198, 165, 1);
    color: #fff;
}

.login-container input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 10px;
    border: solid #fff;
    background: rgba(2, 198, 165, 1);
    border-width: 0px 3px 3px 0;
    transform: rotate(45deg);
}

/* 提交按钮 */
.submit-btn,.Forgot-btn {
    width: 100%;
    padding: 15px;
    background: rgba(2, 198, 165, 1);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover,.Forgot-btn:hover {
    background: rgba(2, 198, 165, 0.68);
}

.back-btn{
    margin-top: 2rem;
    color: #000;
    background-color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    padding: 12px 15px;
    font-size: 16px;
}

#Forgot{
    display: none;
}

/* .login-container input:-webkit-autofill {
	transition:background-color 5000s ease-in-out 0s;
	-webkit-box-shadow: 0 0 0px 0px #fff inset;
	-webkit-text-fill-color: #fff;
	caret-color: #fff;
}
.login-container input:-internal-autofill-selected {
	-webkit-box-shadow: 0 0 0px 0px #fff inset;
	-webkit-text-fill-color: #fff;
    background-color: #1F1F1F !important;
} */


/* 响应式样式 */
@media screen and (max-width: 480px) {
    .auth-form {
        padding: 20px;
    }

    .tab-btn {
        font-size: 16px;
        padding: 8px 16px;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .login-container{
        height: 100vh;
        overflow-y: scroll;
        justify-content: flex-start;
    }
}

/* 加载状态 */
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading::after {
    content: '...';
} 