* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: url('https://hk2.static.lxzcdn.com/img/photo-1618005182384-a83a8bd57fbe.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.logo p {
    color: #666;
    font-size: 14px;
}

.login-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.tab-btn.active {
    color: #333;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.input-group {
    margin-bottom: 16px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.code-group {
    display: flex;
    gap: 10px;
}

.code-group input {
    flex: 1;
}

.send-code-btn {
    padding: 14px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-weight: 500;
}

.send-code-btn:hover {
    background: #f5f5f5;
    border-color: #333;
}

.send-code-btn:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.options label {
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.options input[type="checkbox"] {
    cursor: pointer;
}

.options a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.options a:hover {
    color: #333;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

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

.third-party {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.qr-btn {
    padding: 12px 24px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.qr-btn:hover {
    background: #f5f5f5;
    border-color: #333;
    transform: translateY(-1px);
}

.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

.register-link a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    margin-left: 5px;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 二维码弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
    font-size: 22px;
}

.qr-code {
    text-align: center;
    padding: 20px;
}

.qr-code img {
    width: 200px;
    height: 200px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.qr-tip {
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.qr-status {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.qr-status.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.qr-status.error {
    background: #ffebee;
    color: #c62828;
}

/* 响应式 */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .code-group {
        flex-direction: column;
    }
    
    .send-code-btn {
        width: 100%;
    }
}
