/* 登录页面专用样式 */

/* 主要内容区域 */
.login-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #381DDB 0%, #5B2EF7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 40px;
    position: relative;
}

.login-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://24344043.s21i.faiusr.com/4/ABUIABAEGAAgmYz0wQYorJaXiQMwgA84xAc.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1;
}

/* 登录容器 */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 标签页切换 */
.login-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #381DDB;
    color: #fff;
    box-shadow: 0 2px 8px rgba(56, 29, 219, 0.3);
}

.tab-btn:hover:not(.active) {
    color: #381DDB;
    background: rgba(56, 29, 219, 0.1);
}

/* 表单内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #381DDB;
    box-shadow: 0 0 0 3px rgba(56, 29, 219, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

/* 验证码输入组 */
.verification-group .verification-input {
    display: flex;
    gap: 10px;
}

.verification-input input {
    flex: 1;
}

.verification-btn {
    padding: 12px 16px;
    background: #381DDB;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.verification-btn:hover {
    background: #2d16a8;
}

.verification-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me, .agreement {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #666;
}

.remember-me input, .agreement input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark,
.agreement input:checked + .checkmark {
    background: #381DDB;
    border-color: #381DDB;
}

.remember-me input:checked + .checkmark::after,
.agreement input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #381DDB;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.agreement a {
    color: #381DDB;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 14px 0;
    background: linear-gradient(135deg, #381DDB 0%, #5B2EF7 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(56, 29, 219, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 29, 219, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 社交登录 */
.social-login {
    margin-top: 30px;
}

.divider {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.social-buttons {
    display: flex;
    gap: 15px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #381DDB;
    color: #381DDB;
    background: rgba(56, 29, 219, 0.05);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

/* 头部导航激活状态 */
header .login a.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-main {
        padding: 100px 15px 20px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .verification-input {
        flex-direction: column;
    }
    
    .verification-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-box {
        margin: 0 10px;
        padding: 25px 15px;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 10px 0;
    }
} 