/* 主要内容区域 */
.login-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* 登录容器 */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-height: 600px;
}

/* 左侧图片区域 */
.login-image {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-text {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.image-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease;
}

.image-text p {
    font-size: 16px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s;
}

/* 右侧表单区域 */
.form-container {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

/* 切换按钮 */
.toggle-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.toggle-btn {
    padding: 10px 30px;
    border: none;
    background: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.toggle-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #87CEEB;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.toggle-btn.active {
    color: #87CEEB;
}

.toggle-btn.active::after {
    transform: scaleX(1);
}

/* 表单部分 */
.form-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-section.active {
    display: block;
}

.form-section h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 10px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group input:valid {
    border-bottom-color: #87CEEB;
}

.form-group input:focus + label,
.form-group input:valid + label {
    top: -20px;
    font-size: 12px;
    color: #87CEEB;
}

/* 验证码输入框 */
.verification {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
}

.send-code-btn {
    padding: 8px 15px;
    background: #87CEEB;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.send-code-btn:hover {
    background: #5F9EA0;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.forgot-password {
    color: #87CEEB;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: #87CEEB;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background: #5F9EA0;
}

/* 社交登录 */
.social-login {
    text-align: center;
    margin-top: 20px;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #87CEEB;
}

/* 协议同意 */
.form-agreement {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

.form-agreement a {
    color: #87CEEB;
    text-decoration: none;
}

.form-agreement a:hover {
    text-decoration: underline;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-image {
        display: none;
    }

    .form-container {
        padding: 20px;
    }
} 