/* 登录页面主要内容 */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../../images/login-bg.png') no-repeat center;
    background-size: cover;
    padding: 20px;
}

/* 表单容器 */
.auth-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: flex;
    position: relative;
}

/* 表单侧边装饰 */
.auth-side {
    background: #006400;
    color: #fff;
    padding: 40px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-side h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.auth-side p {
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 表单主体 */
.auth-main {
    padding: 40px;
    width: 60%;
}

.auth-main h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #006400;
    outline: none;
}

/* 错误提示 */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-group.error input {
    border-color: #dc3545;
}

.form-group.error .error-message {
    display: block;
}

/* 记住我和忘记密码 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.forgot-password {
    color: #006400;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: #006400;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #004d00;
}

/* 其他登录方式 */
.other-login {
    margin-top: 30px;
    text-align: center;
}

.other-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.other-login p::before,
.other-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}

.other-login p::before {
    left: 0;
}

.other-login p::after {
    right: 0;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: #006400;
    color: #fff;
}

/* 切换表单 */
.switch-form {
    text-align: center;
    margin-top: 20px;
}

.switch-form a {
    color: #006400;
    text-decoration: none;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 400px;
    }

    .auth-side {
        width: 100%;
        padding: 30px;
    }

    .auth-main {
        width: 100%;
        padding: 30px;
    }

    .other-login p::before,
    .other-login p::after {
        width: 25%;
    }
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-container {
    animation: slideIn 0.5s ease-out;
}

/* 表单切换动画 */
.form-container {
    position: relative;
    min-height: 400px;
}

.login-form,
.register-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.form-active {
    opacity: 1;
    visibility: visible;
} 